+1 vote
in Programming Languages by (39.4k points)
I need to use some R functions in my Python code, so I want to install R in my conda environment. How can I install R in a conda environment?

1 Answer

+2 votes
by (66.8k points)
selected by
 
Best answer

In a conda environment, R can be installed by running the following command on the terminal.

conda install -c r r

It should install the r-base. If you need additional packages that do not come with r-base, you can go to the R command line by typing "R" on the terminal. Once on the R command line, you can run the following command to install your desired package.

install.packages("packageName")

Related questions

+1 vote
1 answer
+3 votes
1 answer
+2 votes
1 answer
+1 vote
1 answer

...