![]() Usethis :: use_git() # ✔ Setting active project to '/Users/someuser/packages/myfirstpackage' # ✔ Initialising Git repo # ✔ Adding '.Rhistory', '.RData' to '.gitignore' # There are 10 uncommitted files: # * '.gitignore' # * '.Rbuildignore' # * 'DESCRIPTION' # * 'LICENSE' # * 'LICENSE.md' # * 'man/' # * 'myfirstpackage.Rproj' # * 'NAMESPACE' # * 'R/' # * 'tests/' # Is it ok to commit them? # 1: For sure # 2: Negative # 3: Not now # Selection: 1 # ✔ Adding files # ✔ Commit with message 'Initial commit' # If you run devtools::check() again, now, your final line should report: Since we’re saying that our package will be using the MIT license, we need to ensure there’s an associated LICENSE file which we can do by executing usethis::use_mit_license() which will create the necessary files and ensure the License field in the DESCRIPTION file is formatted properly. To prove this, use the R console to run devtools::check() and - after some rather verbose output - you’ll see the following lines at the end: > checking DESCRIPTION meta-information. Īt this point we still do not have a “perfect” R package. ![]() The directory structure will look like this. # License: MIT + file LICENSE # Encoding: UTF-8 # LazyData: true # ✔ Writing 'NAMESPACE' # ✔ Writing 'myfirstpackage.Rproj' # ✔ Adding '.er' to '.gitignore' # ✔ Adding '^myfirstpackage\\.Rproj$', '^\\.Rproj\\.user$' to '.Rbuildignore' # ✔ Opening '/Users/someuser/packages/myfirstpackage/' in new RStudio session # ✔ Setting active project to '' ![]() # (parsed): # * Bob Rudis () # Description: What the package does (one paragraph). Devtools :: create( "~/packages/myfirstpackage") # ✔ Creating '/Users/someuser/packages/myfirstpackage/' # ✔ Setting active project to '/Users/someuser/packages/myfirstpackage' # ✔ Creating 'R/' # ✔ Writing 'DESCRIPTION' # Package: myfirstpackage # Title: What the Package Does (One Line, Title Case) # Version: 0.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |