R package install issue in Jupyter Notebook launched with Anaconda

126 Views Asked by At

I created an R environment in Anaconda and launched it using Jupyter Notebook. I am receiving the following error message when I attempt to install the R package "ggbeeswarm."

    install.packages("ggbeeswarm")

also installing the dependencies ‘farver’, ‘isoband’, ‘rlang’, 
‘scales’, ‘vctrs’, ‘cli’, ‘ggplot2’, ‘beeswarm’, ‘lifecycle’

Warning message in install.packages("ggbeeswarm"):
“installation of package ‘farver’ had non-zero exit status”Warning message in install.packages("ggbeeswarm"):
“installation of package ‘isoband’ had non-zero exit status”Warning message in install.packages("ggbeeswarm"):
“installation of package ‘rlang’ had non-zero exit status”Warning message in install.packages("ggbeeswarm"):
“installation of package ‘cli’ had non-zero exit status”Warning message in install.packages("ggbeeswarm"):
“installation of package ‘beeswarm’ had non-zero exit status”Warning message in install.packages("ggbeeswarm"):
“installation of package ‘lifecycle’ had non-zero exit status”Warning message in install.packages("ggbeeswarm"):
“installation of package ‘scales’ had non-zero exit status”Warning message in install.packages("ggbeeswarm"):
“installation of package ‘vctrs’ had non-zero exit status”Warning message in install.packages("ggbeeswarm"):
“installation of package ‘ggplot2’ had non-zero exit status”Warning message in install.packages("ggbeeswarm"):
“installation of package ‘ggbeeswarm’ had non-zero exit status”Updating HTML index of packages in '.Library'
Making 'packages.html' ... done

My computer was recently wiped without a backup so I've had to reinstall a lot of programs. I have previously been able to easily execute my script in this way-- launching Jupyter Notebook from Anaconda and then running my script in an R kernel. I'm wondering if I made a mistake with some aspect of reinstalling along the way.

After reading some other posts, I also tried:

    install.packages("ggbeeswarm", repos='http://cran.us.r-project.org')

and am receiving the same error message.

I also tried in terminal:

    conda install -c conda-forge r-ggbeeswarm

and received the following error:

Solving environment: / failed with initial frozen solve. Retrying with flexible solve.

I also tried

    conda install r-base 

and got the following message:

The environment is inconsistent, please check the package plan carefully The following packages are causing the inconsistency: - conda-forge/osx-64::pystan==3.6.0=py39h6dc771e_0

so uninstalled pystan completely and tried again. Still no luck.

0

There are 0 best solutions below