From g@bembecker @end|ng |rom gm@||@com  Thu Aug 12 22:09:37 2021
From: g@bembecker @end|ng |rom gm@||@com (Gabriel Becker)
Date: Thu, 12 Aug 2021 13:09:37 -0700
Subject: [Rd] 
 Rprofile.site function or variable definitions break with R 4.1
In-Reply-To: <24853.31003.846696.955115@rob.eddelbuettel.com>
References: <YRV0UJKvLRRuqrNr@piskorski.com>
 <24853.31003.846696.955115@rob.eddelbuettel.com>
Message-ID: <CAD4oTHEHY4BXDjHdyKJ=E8FPLwLiL=UnPdmQw4bkVE4p7DKdQg@mail.gmail.com>

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.

Best,
~G

On Thu, Aug 12, 2021 at 12:41 PM Dirk Eddelbuettel <edd at 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 at debian.org
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

	[[alternative HTML version deleted]]



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