You can create your package with devtools or RStudio. if (!require("devtools")) install.packages("devtools")Ĭome up with a name and create your package. We’ll use devtools for building packages. Get familiar with writing packages and you’ll probably find that in the long run you’re a happy programmer in an organised environment. When this happens I’ve learned it’s best to combine that code into packages, even if it’s personal and you are the only one using it. But more and more do I find myself re-using code. I use RStudio project and R Markdown to organise my work. ![]() Mostly I analyse specific data and use a blend of manipulation analysis, visualisation and reporting packages to complete a smallish self-contained project. Personally, there are two main categories of tasks I perform in R. This and the Package Development Cheat Sheet are two of many available on the RStudio Cheat Sheet Page. For a complete overview for Mac and Windows press ‘Alt Shift K’ (windows) or ‘Option Shift K’ (Mac) in RStudio or see the backside of the Rstudio IDE Cheat Sheet. In this post I share many keyboard shortcuts for working on Windows.If this post interests you I strongly advise you to buy Advanced R and R Packages, and to join a workshop. I’ve learned everything in this post from Hadley Wickham’s books and Master R Developer Workshop.The name of the example is the same as the text before (*). ![]()
0 Comments
Leave a Reply. |