@@ -60,10 +60,10 @@ library(usethis)
6060# Create a new package -------------------------------------------------
6161path <- file.path(tempdir(), " mypkg" )
6262create_package(path )
63- # > β Creating '/tmp/RtmpCnD2JV /mypkg/'
64- # > β Setting active project to '/private/tmp/RtmpCnD2JV /mypkg'
65- # > β Creating 'R/'
66- # > β Writing 'DESCRIPTION'
63+ # > β Creating '/tmp/Rtmp4VMzwK /mypkg/'
64+ # > β Setting active project to '/private/tmp/Rtmp4VMzwK /mypkg'
65+ # > β Creating 'R/'
66+ # > β Writing 'DESCRIPTION'
6767# > Package: mypkg
6868# > Title: What the Package Does (One Line, Title Case)
6969# > Version: 0.0.0.9000
@@ -74,55 +74,55 @@ create_package(path)
7474# > license
7575# > Encoding: UTF-8
7676# > Roxygen: list(markdown = TRUE)
77- # > RoxygenNote: 7.1.2
78- # > β Writing 'NAMESPACE'
79- # > β Setting active project to '<no active project>'
77+ # > RoxygenNote: 7.2.0
78+ # > β Writing 'NAMESPACE'
79+ # > β 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/tmp/RtmpCnD2JV /mypkg'
83- # > β Changing working directory to '/tmp/RtmpCnD2JV /mypkg/'
82+ # > β Setting active project to '/private/tmp/Rtmp4VMzwK /mypkg'
83+ # > β Changing working directory to '/tmp/Rtmp4VMzwK /mypkg/'
8484
8585# Modify the description ----------------------------------------------
8686use_mit_license(" My Name" )
87- # > β Setting License field in DESCRIPTION to 'MIT + file LICENSE'
88- # > β Writing 'LICENSE'
89- # > β Writing 'LICENSE.md'
90- # > β Adding '^LICENSE\\.md$' to '.Rbuildignore'
87+ # > β Setting License field in DESCRIPTION to 'MIT + file LICENSE'
88+ # > β Writing 'LICENSE'
89+ # > β Writing 'LICENSE.md'
90+ # > β Adding '^LICENSE\\.md$' to '.Rbuildignore'
9191
9292use_package(" ggplot2" , " Suggests" )
93- # > β Adding 'ggplot2' to Suggests field in DESCRIPTION
93+ # > β Adding 'ggplot2' to Suggests field in DESCRIPTION
9494# > β’ Use `requireNamespace("ggplot2", quietly = TRUE)` to test if package is installed
9595# > β’ Then directly refer to functions with `ggplot2::fun()`
9696
9797# Set up other files -------------------------------------------------
9898use_readme_md()
99- # > β Writing 'README.md'
99+ # > β Writing 'README.md'
100100# > β’ Update 'README.md' to include installation instructions.
101101
102102use_news_md()
103- # > β Writing 'NEWS.md'
103+ # > β Writing 'NEWS.md'
104104
105105use_test(" my-test" )
106- # > β Adding 'testthat' to Suggests field in DESCRIPTION
107- # > β Setting Config/testthat/edition field in DESCRIPTION to '3'
108- # > β Creating 'tests/testthat/'
109- # > β Writing 'tests/testthat.R'
110- # > β Writing 'tests/testthat/test-my-test.R'
106+ # > β Adding 'testthat' to Suggests field in DESCRIPTION
107+ # > β Setting Config/testthat/edition field in DESCRIPTION to '3'
108+ # > β Creating 'tests/testthat/'
109+ # > β Writing 'tests/testthat.R'
110+ # > β Writing 'tests/testthat/test-my-test.R'
111111# > β’ Edit 'tests/testthat/test-my-test.R'
112112
113113x <- 1
114114y <- 2
115115use_data(x , y )
116- # > β Adding 'R' to Depends field in DESCRIPTION
117- # > β Creating 'data/'
118- # > β Setting LazyData to 'true' in 'DESCRIPTION'
119- # > β Saving 'x', 'y' to 'data/x.rda', 'data/y.rda'
116+ # > β Adding 'R' to Depends field in DESCRIPTION
117+ # > β Creating 'data/'
118+ # > β Setting LazyData to 'true' in 'DESCRIPTION'
119+ # > β Saving 'x', 'y' to 'data/x.rda', 'data/y.rda'
120120# > β’ Document your data (see 'https://r-pkgs.org/data.html')
121121
122122# Use git ------------------------------------------------------------
123123use_git()
124- # > β Initialising Git repo
125- # > β Adding '.Rproj.user', '.Rhistory', '.Rdata', '.httr-oauth', '.DS_Store' to '.gitignore'
124+ # > β Initialising Git repo
125+ # > β Adding '.Rproj.user', '.Rhistory', '.Rdata', '.httr-oauth', '.DS_Store' to '.gitignore'
126126```
127127
128128## Code of Conduct
0 commit comments