File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ Authors@R: c(
88Description: Automates the set up of common tools needed during
99 package development and data analysis.
1010License: GPL-3
11+ URL: https://github.com/r-lib/usethis
12+ BugReports: https://github.com/r-lib/usethis/issues
1113Depends:
1214 R (>= 3.1)
1315Imports:
@@ -18,8 +20,8 @@ Imports:
1820 digest,
1921 gh,
2022 git2r,
21- rprojroot,
2223 rmarkdown,
24+ rprojroot,
2325 rstudioapi,
2426 whisker,
2527 withr
@@ -30,5 +32,3 @@ Encoding: UTF-8
3032LazyData: true
3133Roxygen: list(markdown = TRUE)
3234RoxygenNote: 6.0.1
33- URL: https://github.com/r-lib/usethis
34- BugReports: https://github.com/r-lib/usethis/issues
Original file line number Diff line number Diff line change @@ -51,11 +51,18 @@ use_tidy_ci <- function(browse = interactive()) {
5151use_tidy_description <- function () {
5252 base_path <- proj_get()
5353
54+ # Alphabetise dependencies
5455 deps <- desc :: desc_get_deps(base_path )
5556 deps <- deps [order(deps $ type , deps $ package ), , drop = FALSE ]
5657 desc :: desc_del_deps(file = base_path )
5758 desc :: desc_set_deps(deps , file = base_path )
5859
60+ # Alphabetise remotes
61+ remotes <- desc :: desc_get_remotes(file = base_path )
62+ if (length(remotes ) > 0 )
63+ desc :: desc_set_remotes(sort(remotes ), file = base_path )
64+
65+ # Reorder all fields
5966 desc :: desc_reorder_fields(file = base_path )
6067
6168 invisible (TRUE )
You can’t perform that action at this time.
0 commit comments