R package 'survival' version problem
0
0
Entering edit mode
3.8 years ago
cromero • 0

Hi all,

I have a problem with versions in R console:

My R version is: 3.5.2 The problem is with the 'survival' package, the version i have installed now is 3.1-12 and when i try to run the package, is saying :

library(survival) Warning message: package ‘survival’ was built under R version 3.5.3

I also tried to downgrade to the version 2.44 or 2.41 and the result is the same.

I hope you can help me to identify with version i have to install or why is showing to me that error.

There is any place a RACI with the pacage version depending on the R version you have?

thanks

R • 1.4k views
ADD COMMENT
0
Entering edit mode

Use conda and create a new environment with the desired version of the package you need.

ADD REPLY
0
Entering edit mode

I suspect R is picking up first a survival version you can not update (probably system-wide R library folder), and when you install / upgrade / downgrade, it doesn't make any difference because the system-wide folder has precedence over your personal library folder.

What is the output of:

sessionInfo()

.libPaths()
ADD REPLY
0
Entering edit mode

here the result of both commands:

sessionInfo()

R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server 2012 R2 x64 (build 9600)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252 
[2] LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_3.5.2 tools_3.5.2

.libPaths()

[1] "C:/Users/*****/Documents/R/win-library/3.5"
[2] "D:/tibco/R-3.5.2/library"
ADD REPLY
0
Entering edit mode

You can try to set a new library PATH with .libPaths( ""C:/Users/hidden/Documents/R/win-library/3.5" ), or call library() with the lib.loc = parameter. See ?.libPaths and ?library for more information.

If this doesn't solve your problem, consider using conda, as RamRS suggested.

ADD REPLY
0
Entering edit mode

Hi ,

My Library by default should be "D:/tibco/R-3.5.2/library" is the place I have all the packages. There is any way to still using this library and solve the issue?

Sorry but, I'm not an expert with R or Conda, could you help me about what you mean with create a new environment with the desired package release?

Thanks

ADD REPLY

Login before adding your answer.

Traffic: 2048 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6