Skip to content

Commit 0b5e8b3

Browse files
committed
Update setup vignette re: destdir and authors
1 parent ba7a74f commit 0b5e8b3

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

vignettes/articles/usethis-setup.Rmd

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ Certain options are consulted by usethis and allow you to set personal defaults:
6565
Git. Either "ssh" or "https". See the help for `git_protocol()` for more.
6666
* `usethis.description`: named list of default DESCRIPTION fields for new
6767
packages made with `usethis::create_package()`.
68-
* `usethis.quiet`: if `TRUE`, prevent usethis from printing messages to the console.
69-
* `usethis.destdir`: a default directory to use in `create_from_github()` and `use_course()`
68+
* `usethis.quiet`: if `TRUE`, prevents usethis from printing messages to the
69+
console.
70+
* `usethis.destdir`: a default directory to use in `create_from_github()` and
71+
`use_course()`.
7072

7173
Define any of these options in your `.Rprofile`, which can be opened for editing via `usethis::edit_r_profile()`. Here is example code:
7274

@@ -75,10 +77,15 @@ options(
7577
usethis.full_name = "Jane Doe",
7678
usethis.protocol = "ssh",
7779
usethis.description = list(
78-
`Authors@R` = 'person("Jane", "Doe", email = "[email protected]", role = c("aut", "cre"),
79-
comment = c(ORCID = "YOUR-ORCID-ID"))',
80+
"Authors@R" = utils::person(
81+
"Jane", "Doe",
82+
email = "[email protected]",
83+
role = c("aut", "cre"),
84+
comment = c(ORCID = "JANE'S-ORCID-ID")
85+
),
8086
Version = "0.0.0.9000"
81-
)
87+
),
88+
usethis.destdir = "~/the/place/where/I/keep/my/R/projects"
8289
)
8390
```
8491

0 commit comments

Comments
 (0)