This is a test version of Biostars. For the public version, visit https://www.biostars.org.
R package 'survival' version problem

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

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

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()

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"

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.

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

0 answers

No answers yet.

Log in to answer this question.