CLAWRIM Wiki

The Computational Lab for Advanced Water Resources Informatics and Modeling

User Tools

Site Tools


howtos:how_to_create_an_r_package

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:how_to_create_an_r_package [2026-02-28 08:45 am] hchohowtos:how_to_create_an_r_package [2026-02-28 02:09 pm] (current) hcho
Line 2: Line 2:
  
 <code rsplus> <code rsplus>
-# install useful packages +# install devtools 
-install.packages(c("usethis", "roxygen2", "devtools""testthat"))+install.packages("devtools"
 + 
 +# create a template in package/ 
 +usethis::create_package("package")
 </code> </code>
howtos/how_to_create_an_r_package.1772293546.txt.gz · Last modified: by hcho

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki