Error in inDL(x, as.logical(local), as.logical(now), …) : unable to load shared object

后端 未结 2 1503
情歌与酒
情歌与酒 2020-12-21 06:12

I\'m having this error when trying to attach package tidyselect and when trying to call tidyselect::any_function.

The error happens in

相关标签:
2条回答
  • 2020-12-21 06:26

    This was solved by reinstalling tidyselect using :

    install.packages("tidyselect",INSTALL_opts="--no-multiarch")
    

    (Although the package could be install with install.packages("tidyselect") without error.

    This answer pointed me to the solution (totally different question though).

    It seems that it was indeed an issue with rjava.

    Quoting the linked answer:

    the solution was to use install option that simply forgets about i386 architecture. (also works with drat library and packages not from CRAN

    It's all Chinese to me though and ?utils::install.packages doesn't help, I'll happily upvote / accept an answer that explains what's going on.

    0 讨论(0)
  • 2020-12-21 06:40

    I don't know why this event happens as I am currently facing the same problem. Anyways I can explain your solution.

    32 vs 64 bits

    Your system is 64 bits, as shown in your sessionInfo(). i386 architecture is for the older systems, in 32 bits (they can only handle a limited amount of memory as they use 32 bits memory addresses, while 64 bits systems are, virtually, unlimited today).

    What happens in R

    A classic installation in R is "multiarch" for multi-architectures, which means 32 and 64 bits. In 64 bits systems there is no problem in building a 32 bits software. However, your may not have all the dependencies (e.g. C++ libraries) installed for both architectures. There is apparently a problem with your 32 bits installation. Then installing the package with INSTALL_opts="--no-multiarch" only installs the 64 bits version (the one you need), without problems.

    0 讨论(0)
提交回复
热议问题