From: ArcWandx86 Date: Tue, 6 Jun 2023 03:47:33 +0000 (-0400) Subject: Update the message for R X-Git-Tag: v0.2.0.2~37^2~1 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/commitdiff_plain/78d646cb90581590a6a4f846f7d468f4104dece4?ds=sidebyside Update the message for R The $HOME/R folder is applicable to more than just Rstudio—R as a whole uses it. This change is what worked for me. Note: the article linked by the original message did not work; it may have been out of date. --- diff --git a/programs/R.json b/programs/R.json new file mode 100644 index 0000000..52667b4 --- /dev/null +++ b/programs/R.json @@ -0,0 +1,10 @@ +{ + "name": "R", + "files": [ + { + "path": "$HOME/R", + "movable": true, + "help": "Export the following environment variables:\n\n```bash\nexport R_LIBS_USER=\"$XDG_DATA_HOME\"/R/x86_64-pc-linux-gnu-library\n```\n\nAnd/or append this line to the end of `/usr/lib/R/library/base/R/Rprofile`:\n\n```R.libPaths( c( \"$XDG_DATA_HOME/R/x86_64-pc-linux-gnu-library/\" , .libPaths() ) )```\n\n**Disclaimer: You may need to re-install your libraries**" + } + ] +} diff --git a/programs/rstudio.json b/programs/rstudio.json deleted file mode 100644 index 3b96acf..0000000 --- a/programs/rstudio.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "rstudio", - "files": [ - { - "path": "$HOME/R", - "movable": true, - "help": "Default directory location can be configured in RStudio\nReference: https://www.accelebrate.com/library/how-to-articles/r-rstudio-library" - } - ] -}