question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

rprofile.site not respected

See original GitHub issue

When opening up an R terminal the settings specified in the Rprofile.site is not respected. For example i specify .libpaths(), in my Rprofile.site, but now when i call on .libpaths() the newly specified library path is no longer there.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
renkun-kencommented, Apr 15, 2020

The problem is caused by the default config:

"r.rterm.option": [
        "--no-save",
        "--no-restore",
        "--no-site-file"
    ]

You should remove --no-site-file and reload vscode and the R terminal you create should automatically source your Rprofile.site first.

0reactions
andycraigcommented, Apr 15, 2020

I would be happy with removing —no-site-file from the default.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rprofile.site not found by R on Startup in macos - Stack Overflow
site lives in the home directory as /etc/Rprofile.site. I checked the home directory using R.home(component="home") and got "/Library/Frameworks ...
Read more >
Tinn-R overrides Rprofile.site settings - SourceForge
On startup, Tinn-R generates tmp/sgInfo.R, which it seems to do after reading Rprofile.site, so some of my preferred settings get ...
Read more >
R not reading Rprofile.site at startup - Super User
R wouldn't read the .Rprofile in my home directory. My solution was to go to /usr/lib/R/etc and create a softlink there: ...
Read more >
How to check that R Profile is being run when R is started?
One idea: you could set a variable to the global environment in your . Rprofile script, then check for that variable's existence. (Or...
Read more >
Initialization at Start of an R Session - R
If this variable is unset, the default is ' R_HOME /etc/Rprofile.site', which is used if it exists (which it does not in a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found