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

Next revision
Previous revision
howtos:how_to_create_an_r_package [2026-02-28 08:27 am] – created hchohowtos:how_to_create_an_r_package [2026-02-28 02:09 pm] (current) hcho
Line 1: Line 1:
 ====== How to create an R package ====== ====== How to create an R package ======
  
-<code R+<code rsplus
-# install useful packages +# install devtools 
-install.packages(c("usethis", "devtools""roxygen2", "testthat"))+install.packages("devtools"
 + 
 +# create a template in package/ 
 +usethis::create_package("package")
 </code> </code>
howtos/how_to_create_an_r_package.1772292458.txt.gz · Last modified: by hcho

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki