Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Survminer package loading error #394

Closed
massimofagg opened this issue May 30, 2019 · 6 comments
Closed

Survminer package loading error #394

massimofagg opened this issue May 30, 2019 · 6 comments

Comments

@massimofagg
Copy link

Hello,
I am encountering the following error when trying to load the survminer package:

Error: package or namespace load failed for ‘survminer’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘cmprsk’

Then I try to install the package cmprsk but unfortunately this package is not available for R version 3.5.1

How could I solve this?

Massimo

@massimofagg
Copy link
Author

I solved by updating R to current version.

@kassambara
Copy link
Owner

so we can close this issue, thanks

@StevenMMortimer
Copy link

@kassambara I still believe this issue should be open as a bug and fixed because it implies your package documentation is not correct. Your package depends on R 3.6.0 because your dependencies (cmprsk) depend on R >= 3.6.0, but that's not defined in your DESCRIPTION file. I would recommend adding Depends: R (>= 3.6.0) to your DESCRIPTION file.

@kassambara kassambara reopened this Jun 14, 2019
@kassambara
Copy link
Owner

Thank you @StevenMMortimer for pointing this out! We'll update the package accoordingly

@kassambara
Copy link
Owner

The recent update of package cmprsk suddenly requires the current R version >= 3.6.0, forcing survminer users to update their R version

As cmprsk is only used in documentations, we can move it from Imports section to suggests, so that the installation of survminer no longer needs cmprsk

kassambara added a commit that referenced this issue Jun 27, 2019
@kassambara
Copy link
Owner

Dependency to cmprsk now removed.

You can install the latest dev version as follow:

devtools::install_github("kassambara/survminer", build_vignettes = FALSE)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants