]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Update the message for R
authorArcWandx86 <arcwandx86@gmail.com>
Tue, 6 Jun 2023 03:47:33 +0000 (23:47 -0400)
committerArcWandx86 <arcwandx86@gmail.com>
Tue, 6 Jun 2023 03:47:33 +0000 (23:47 -0400)
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.

programs/R.json [new file with mode: 0644]
programs/rstudio.json [deleted file]

diff --git a/programs/R.json b/programs/R.json
new file mode 100644 (file)
index 0000000..52667b4
--- /dev/null
@@ -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 (file)
index 3b96acf..0000000
+++ /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"
-        }
-    ]
-}