Regarding the installation of packages

hi,
I am encountering some error during the installation of packages.

clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/opt/anaconda3/envs/R/lib/R/share/make/shlib.mk:6: digest.dylib] Error 1
ERROR: compilation failed for package ‘digest’

  • removing ‘/opt/anaconda3/envs/R/lib/R/library/digest’
    ERROR: dependency ‘rlang’ is not available for package ‘ellipsis’
  • removing ‘/opt/anaconda3/envs/R/lib/R/library/ellipsis’
    ERROR: dependencies ‘cli’, ‘glue’, ‘rlang’ are not available for package ‘lifecycle’
  • removing ‘/opt/anaconda3/envs/R/lib/R/library/lifecycle’
    ERROR: dependencies ‘cli’, ‘glue’, ‘lifecycle’, ‘rlang’ are not available for package ‘vctrs’
  • removing ‘/opt/anaconda3/envs/R/lib/R/library/vctrs’
    ERROR: dependencies ‘digest’, ‘base64enc’, ‘rlang’, ‘fastmap’, ‘ellipsis’ are not available for package ‘htmltools’
  • removing ‘/opt/anaconda3/envs/R/lib/R/library/htmltools’
    ERROR: dependencies ‘cli’, ‘fansi’, ‘glue’, ‘lifecycle’, ‘rlang’, ‘utf8’, ‘vctrs’ are not available for package ‘pillar’
  • removing ‘/opt/anaconda3/envs/R/lib/R/library/pillar’
    ERROR: dependencies ‘htmltools’, ‘jsonlite’, ‘pillar’, ‘base64enc’ are not available for package ‘repr’
  • removing ‘/opt/anaconda3/envs/R/lib/R/library/repr’
    ERROR: dependency ‘repr’ is not available for package ‘IRdisplay’
  • removing ‘/opt/anaconda3/envs/R/lib/R/library/IRdisplay’
    ERROR: dependencies ‘repr’, ‘IRdisplay’, ‘pbdZMQ’, ‘jsonlite’, ‘uuid’, ‘digest’ are not available for package ‘IRkernel’
  • removing ‘/opt/anaconda3/envs/R/lib/R/library/IRkernel’

The downloaded source packages are in
‘/private/var/folders/2h/z5gdkkss3xzc42_1_j57m6x40000gn/T/RtmpH0BnVH/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
There were 20 warnings (use warnings() to see them)

when I install each package, it display a list of other uninstalled packages.
what should I do ? is there any other way to install it , I mean can I install it using conda ?

This indicates that an attempt was made to install a package from source, rather than binary. This is something that most users should not rely on to work as a matter of course unless running under a standard development environment that is known to work reliably. A fresh Ubuntu installation will reliably install any source package from CRAN provided the required system libraries are present.

Why conda is operating in your configuration to compile rather than taking the binary version, I can't say. I do know that in this forum I have seen many failures traceable to conda and no recommendations singing its praise. While it's a very good package manager for Python, there appears to me to be no reason to prefer it to the ordinary package installation, updating and removing facilities of R.

I won't say that it's impossible to get conda working properly, because I haven't tried—only that it's not something I'd want to try.

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.