Installing packages

In Linux/Jupyter/R. Getting lots of “this package isn’t available for this version of R”. Even ggplot2 not installing. Any ideas as to how to remedy?

Hi @edwardahill,

I hope you are able to connect with CRAN, if not checkout helpful post from @michael_bordeleau here:
https://discourse.aicrowd.com/t/did-anyone-get-r-to-work/5456/14.

In case the packages for your R version aren’t available via CRAN.

You can use conda to install them.

conda install -c conda-force r-ggplot2
[or]
conda install -c r r-ggplot2

I hope that helps, happy participation!

1 Like

Thanks @shivam, got it working with the following command:

cat(system('conda install -c conda-force r-ggplot2', intern=TRUE), sep='\n')

2 Likes