Open bersbersbers opened 3 years ago
Hi, yes, this is a known problem(*). One workaround is what you've found - avoid loading conflicting packages in ~/.Rprofile
. Another workaround is to do:
Sys.setenv(R_PROFILE_USER="NULL")
install.packages("R.oo")
This will trick R to skip ~/.Rprofile
while installing R.oo.
(*) The long-term solution to this problem is an overdue updated to R.methodsS3, cf. https://github.com/HenrikBengtsson/R.methodsS3/issues/17.
I've got the following error with R 4.3.1 under Cent OS 7.9.
Error in setGenericS3.default(name, export = exportGeneric, envir = envir, :
(converted from warning) Renamed the preexisting function getMethods to getMethods.default, which was defined in environment R.oo.
Sys.setenv(R_PROFILE_USER="NULL")
also worked for this.
I exhausted quite much time to come here.......
This happens on Linux upon package installation when I have
library(glue)
in my.Rprofile
:It does not happen when I remove
library(glue)
from my.Rprofile
and launchR -e "library(glue); install.packages('R.oo')"