nmfs-opensci / r-vscode-codespaces

Setups for R in Codespaces
MIT License
7 stars 1 forks source link

add code so that devtools::check() works #8

Closed k-doering-NOAA closed 1 year ago

k-doering-NOAA commented 1 year ago

Thanks to @ChristineStawitz-NOAA for figuring out this post command allows devtools::check() to work:

"postCreateCommand": "echo 'options(repos = c(CRAN = \"https://cloud.r-project.org\"))' | sudo sh -c 'cat - >>\"${R_HOME}/etc/Rprofile.site\"'",

I think this would be necessary for a codespace used to develop and R package, so perhaps we should have a separate template for running r code vs developing an r package.

k-doering-NOAA commented 1 year ago

addressed in #10