Re: [Rd] Rprofile.site function or variable definitions break with R 4.1

2021-08-12 Thread Gabriel Becker
Hi Andrew and Dirk, The other question to think about is what was your Rprofile.site doing before. We can infer from this error that apparently it was defining things *in the namespace for the base package*. How often is that actually what you wanted it to do/a good idea? I haven't played around

Re: [Rd] Rprofile.site function or variable definitions break with R 4.1

2021-08-12 Thread Dirk Eddelbuettel
On 12 August 2021 at 15:19, Andrew Piskorski wrote: | Ok, but what's the recommended way to actually USE Rprofile.site now? | Should I move all my local configuration into a special package, and | do nothing in Rprofile.site except require() that package? Exactly as before. I set my mirror as I

[Rd] Rprofile.site function or variable definitions break with R 4.1

2021-08-12 Thread Andrew Piskorski
With R 4.1, it seems you can no longer do much in your "Rprofile.site" file. Attempting to define any functions or set any variables there gives errors like these: Error: cannot add binding of 'my_function_name' to the base environment Error: cannot add binding of 'my_variable_name' to the