Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Using R With the Conda Package Manager

DZone 's Guide to

Using R With the Conda Package Manager

A quick and painless tutorial on how to use Conda to install R and libraries for R.

· Big Data Zone ·
Free Resource

I've been unable to get some R libraries to install on my Linux laptop. Two libraries in particular were tseries and tidyverse. The same libraries installed just fine on Windows (maybe you need to install Rtools first before installing these on Windows; I don't remember).

I use conda all the time with Python, but I hadn't tried it with R until this evening. Apparently it just works. The libraries I was trying to install have a lot of dependencies, and conda is very good at managing dependencies.

I removed my installation of R and reinstalled from conda:

conda install r-base

Then I installed tseries with

conda install r-tseries

and installed tidyverse analogously:

conda install r-tidyverse

Just prepend r- to the name of the R library you want to install.

I haven't used it in anger yet, but it seems that everything works just fine.

Topics:
rstats ,big data ,r tutorials ,conda

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}