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

Error: package or namespace load failed for ‘nlmix #475

Closed
dervieux1 opened this issue Feb 8, 2021 · 5 comments
Closed

Error: package or namespace load failed for ‘nlmix #475

dervieux1 opened this issue Feb 8, 2021 · 5 comments

Comments

@dervieux1
Copy link

Getting this error after installation.

library(nlmixr)
Error: package or namespace load failed for ‘nlmixr’:
.onLoad failed in loadNamespace() for 'vctrs', details:
call: NULL
error: The vctrs package is not properly installed.
x The DLL version (0.3.2) does not correspond to the package version (0.3.1).
i Please update vctrs to the latest version.
i Updating packages on Windows requires precautions:
rstats-wtf/what-they-forgot#62
In addition: Warning message:
package ‘nlmixr’ was built under R version 4.0.2

@diabloyg
Copy link

diabloyg commented Feb 9, 2021

I didn't see this during my installation so just a guess. When I do installation several months before similar issues happened to my "lotri" packages, though I forgot the details. My recommendation is that uninstall the package "vctrs" and reinstall it again manually. If it didn't work, then back to R 3.6.3 might help. I am not sure whether R version above 4.0 would lead to compatibility issues. @mattfidler

@mattfidler
Copy link
Contributor

Typically you should restart R and even run R in console mode to make sure that no packages are installed. You should then uninstall vctrs and then reinsall it.

It seems you are keeping your old R libraries and upgrading R. This is a bad pratctice. Sometimes packages don't work if you install in this manner, though it is less likely in minor upgrades like R 4.0.2 to R 4.0.3

@dervieux1
Copy link
Author

Still having error message after reinstalling "vctrs"

devtools::install_github("nlmixrdevelopment/nlmixr")
...
package ‘digest’ successfully unpacked and MD5 sums checked
Error: Failed to install 'nlmixr' from GitHub:
(converted from warning) cannot remove prior installation of package ‘digest’

@mattfidler
Copy link
Contributor

You have to reinstall digest now;

Since digest is used in many packages, you will need to restart R/windows for this as well.

@dervieux1
Copy link
Author

thank you

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