@@ -60,8 +60,8 @@ library(usethis)
6060# Create a new package -------------------------------------------------
6161path <- file.path(tempdir(), " mypkg" )
6262create_package(path )
63- # > β Creating '/var/folders/03/9x7925g54mncswxx06wpkxl00000gn/T/RtmpxLZ8U3 /mypkg/'
64- # > β Setting active project to '/private/var/folders/03/9x7925g54mncswxx06wpkxl00000gn/T/RtmpxLZ8U3 /mypkg'
63+ # > β Creating '/tmp/RtmpxY5vMB /mypkg/'
64+ # > β Setting active project to '/private/tmp/RtmpxY5vMB /mypkg'
6565# > β Creating 'R/'
6666# > β Writing 'DESCRIPTION'
6767# > Package: mypkg
@@ -74,13 +74,13 @@ create_package(path)
7474# > license
7575# > Encoding: UTF-8
7676# > Roxygen: list(markdown = TRUE)
77- # > RoxygenNote: 7.1.1
77+ # > RoxygenNote: 7.1.2
7878# > β Writing 'NAMESPACE'
7979# > β Setting active project to '<no active project>'
8080# only needed since this session isn't interactive
8181proj_activate(path )
82- # > β Setting active project to '/private/var/folders/03/9x7925g54mncswxx06wpkxl00000gn/T/RtmpxLZ8U3 /mypkg'
83- # > β Changing working directory to '/var/folders/03/9x7925g54mncswxx06wpkxl00000gn/T/RtmpxLZ8U3 /mypkg/'
82+ # > β Setting active project to '/private/tmp/RtmpxY5vMB /mypkg'
83+ # > β Changing working directory to '/tmp/RtmpxY5vMB /mypkg/'
8484
8585# Modify the description ----------------------------------------------
8686use_mit_license(" My Name" )
@@ -91,12 +91,13 @@ use_mit_license("My Name")
9191
9292use_package(" MASS" , " Suggests" )
9393# > β Adding 'MASS' to Suggests field in DESCRIPTION
94- # > β Use `requireNamespace("MASS", quietly = TRUE)` to test if package is installed
95- # > β Then directly refer to functons like `MASS::fun()` (replacing `fun()`).
94+ # > β’ Use `requireNamespace("MASS", quietly = TRUE)` to test if package is installed
95+ # > β’ Then directly refer to functons like `MASS::fun()` (replacing `fun()`).
9696
9797# Set up other files -------------------------------------------------
9898use_readme_md()
9999# > β Writing 'README.md'
100+ # > β’ Update 'README.md' to include installation instructions.
100101
101102use_news_md()
102103# > β Writing 'NEWS.md'
@@ -107,7 +108,7 @@ use_test("my-test")
107108# > β Creating 'tests/testthat/'
108109# > β Writing 'tests/testthat.R'
109110# > β Writing 'tests/testthat/test-my-test.R'
110- # > β Edit 'tests/testthat/test-my-test.R'
111+ # > β’ Edit 'tests/testthat/test-my-test.R'
111112
112113x <- 1
113114y <- 2
@@ -116,7 +117,7 @@ use_data(x, y)
116117# > β Creating 'data/'
117118# > β Setting LazyData to 'true' in 'DESCRIPTION'
118119# > β Saving 'x', 'y' to 'data/x.rda', 'data/y.rda'
119- # > β Document your data (see 'https://r-pkgs.org/data.html')
120+ # > β’ Document your data (see 'https://r-pkgs.org/data.html')
120121
121122# Use git ------------------------------------------------------------
122123use_git()
0 commit comments