Skip to content

isteves/r-pkg-intro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travis-CI Build Status

How to create an R package 📦

Check out the slidedeck to quickly build your first package! 🌴 ☀️ 🌊

Here's an alternate Git/RStudio workflow you can use to get your package started:

  1. Create an new GitHub repo on https://github.com/new
  2. Create a new Git R project (File --> New Project --> Version Control --> Git --> [paste in Repository URL] & [Create Project])
  3. Use devtools::create(".") to initiate a package. You can say "no" when it asks you to overwrite the RProj file.

Other tips and resources

Also check out these guides to package development in R:

Here are some other great packages you may want to check out:

And some keyboard short-cuts:

  • Cmd + i = auto-indent
  • Cmd + opt + shift + r = auto-generate roxygen skeleton
  • Cmd + shift + t = devtools::test()
  • Cmd + shift + d = devtools::document()

If you are on Windows, Use Ctrl in the place of Cmd for the above shortcuts work.

Other reading/resources:

Releases

No releases published

Packages

No packages published

Languages