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

Failure during installation of devtools #2581

Open
l8l opened this issue Sep 5, 2024 · 1 comment
Open

Failure during installation of devtools #2581

l8l opened this issue Sep 5, 2024 · 1 comment

Comments

@l8l
Copy link

l8l commented Sep 5, 2024

Is your feature request related to a problem? Please describe.
On Arch and on Debian (both x86-64), when trying to install devtools via install.packages("devtools"), errors are returned, namely

Warning messages:
1: In install.packages("devtools") :
  installation of package ‘textshaping’ had non-zero exit status
2: In install.packages("devtools") :
  installation of package ‘ragg’ had non-zero exit status
3: In install.packages("devtools") :
  installation of package ‘pkgdown’ had non-zero exit status
4: In install.packages("devtools") :
  installation of package ‘devtools’ had non-zero exit status

I tried following what is suggested in this stackexchange post but this did not work for me. Besides, next to my local system (where the suggestion does not work despite having installed the external libraries like fribidi), I also want to install devtools on a remote cluster, where I do not have admin rights. On that cluster, I can not even install the external libraries because that seems to require sudo-rights. Usually packages added within a package manager do not require to install anything external but pull all necessary dependencies (also of libraries of other languages) themselves. Why does this not happen here and what is one supposed to do?

Describe the solution you'd like
The package manager should pull by itself all dependencies needed during installation for devtools.

@l8l
Copy link
Author

l8l commented Sep 5, 2024

After several failed attempts, I managed to resolve the problems, using conda and want to share this for others who might face the same issue.

You can install the lightweight miniconda without needs for admin rights with the instructions here. After that, all it takes is:

conda create --name my_R_environment
conda activate my_R_environment
conda install r-base --channel conda-forge 
conda install r-devtools --channel conda-forge

This automatically pulled all necessary dependencies just like I was imagining it and did not require additional rights. Should work on any machine. = )

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

1 participant