Skip to content

Commit b4d1134

Browse files
committed
Alphabetise remotes
Fixes #81
1 parent 1b18e14 commit b4d1134

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Authors@R: c(
88
Description: Automates the set up of common tools needed during
99
package development and data analysis.
1010
License: GPL-3
11+
URL: https://github.com/r-lib/usethis
12+
BugReports: https://github.com/r-lib/usethis/issues
1113
Depends:
1214
R (>= 3.1)
1315
Imports:
@@ -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
3032
LazyData: true
3133
Roxygen: list(markdown = TRUE)
3234
RoxygenNote: 6.0.1
33-
URL: https://github.com/r-lib/usethis
34-
BugReports: https://github.com/r-lib/usethis/issues

R/tidyverse.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,18 @@ use_tidy_ci <- function(browse = interactive()) {
5151
use_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)

0 commit comments

Comments
 (0)