How to install r language in Anaconda-Anaconda usage tutorial

Time: 2024-05-11Source: Huajun Software TutorialAuthor: Xiao Hulu

Friends who have just started Anaconda may not know how to install the R language. Today, the editor will explain the steps to install the R language in Anaconda. I believe that through learning, you will be able to operate it in the future.

Method one:

Type sudo visudo on the command line to open the sudo settings file, search for Defaults env_keep, and add a line of commands at the end as follows

How to install r language with anaconda

The command to install R packages is as follows

How to install r language with anaconda

Using RStudio, you can install it through conda with the following command:

How to install r language with anaconda

Method two:

To install to Anaconda, proceed as follows

How to install r language with anaconda

Use Anaconda to install R3 operation

How to install r language with anaconda

Use R's install.package("") to install the packages we need as follows:

How to install r language with anaconda

Above, I shared with you how to install R language in Anaconda. Friends in need should hurry up and read this article.

Related articles更多>>

Popular recommendations