naniar icon indicating copy to clipboard operation
naniar copied to clipboard

not missing package: there is no package called ‘visdat’

Open r0bis opened this issue 3 years ago • 1 comments

I am sorry, but this is an installation issue:

install.packages("naniar") gives the following error

** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called ‘visdat’
Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted

But I have installed visdat and even loaded it with library(visdat)

r0bis avatar Feb 16 '21 00:02 r0bis

Hi there,

Thanks for posting - this is a bit of a tricky issue for me to replicate. Could you show me the output of .libPaths()?

Mine returns:

 .libPaths()
[1] "/Library/Frameworks/R.framework/Versions/4.0/Resources/library"

Do you have any custom code in your .Rprofile that talks to / changes the libPaths library?

njtierney avatar May 12 '21 07:05 njtierney

Hi there, I wrote a bit about one of these issues with installation, hopefully that is helpful? https://www.njtierney.com/post/2020/05/29/there-is-no-pkg/

But for the moment I think that this is not an issue with naniar, I hope you have been able to resolve this :)

njtierney avatar Oct 14 '22 02:10 njtierney

Thanks very much

r0bis avatar Oct 20 '22 18:10 r0bis