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

Gabriel Becker g@bembecker @end|ng |rom gm@||@com
Thu Aug 12 22:09:37 CEST 2021

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 with it, as I don't use Rprofile.site to actually
create/assign object only, like Dirk, set options or option-adjacent things
(such as .libPaths), but I imagine you could get it to put things into the
global environment or attach a special "local config" entry to the search
path an put things there, if you so desired.


On Thu, Aug 12, 2021 at 12:41 PM Dirk Eddelbuettel <edd using debian.org> wrote:

> 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 have before and nothing changes
>   ## We set the cloud mirror, which is 'network-close' to everybody, as
> default
>   local({
>       r <- getOption("repos")
>       r["CRAN"] <- "https://cloud.r-project.org"
>       options(repos = r)
>   })
> I cannot help but think that you are shooting the messenger (here
> Rprofile.site) for an actual behaviour change in R itself ?
> Dirk
> --
> https://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org
> ______________________________________________
> R-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

	[[alternative HTML version deleted]]

More information about the R-devel mailing list