View source: R/sort_deps_in_desc.R
sort_deps_in_desc | R Documentation |
Sort Fields 'Import', 'Depends' and 'Suggests' ‘DESCRIPTION’
sort_deps_in_desc(file)
file |
see
|
NULL
, but called for its side effect.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.