sort_deps_in_desc {packager} | R Documentation |
Sort Fields 'Import', 'Depends' and 'Suggests' ‘DESCRIPTION’
Description
Sort Fields 'Import', 'Depends' and 'Suggests' ‘DESCRIPTION’
Usage
sort_deps_in_desc(file)
Arguments
file |
see
|
Value
NULL
, but called for its side effect.
Examples
path <- file.path(tempdir(), "myFirstPackage")
usethis::create_package(path = path, rstudio = FALSE, open = FALSE)
withr::with_dir(path, usethis::use_package("withr"))
withr::with_dir(path, usethis::use_package("cleanr"))
desc::desc_get_deps(file.path(path, "DESCRIPTION"))
packager::sort_deps_in_desc(file.path(path, "DESCRIPTION"))
usethis::proj_set(NULL)
desc::desc_get_deps(file.path(path, "DESCRIPTION"))
unlink(path, recursive = TRUE)
[Package packager version 1.15.3 Index]