Follow these steps to install R package “tidytext” for your Anaconda R environment in Mac terminal, which is fast and convenient for R language learners and programers.
Step 1: Open the terminal in Mac.
- In the Finder , open the /Applications/Utilities folder, then double-click Terminal.
Step 2: Type the following command in your Mac terminal to activate your Anaconda R environment.
- Make sure to replace your own Anaconda R environment name with “r_envi_name” used in this example.
conda activate r_envi_name
Step 3: Type the following command in terminal to install the R package “tidytext” for your R environment.
conda install -c r r-tidytext
Step 4 (optional): Type the following command to check if this R package “tidytext” has been successfully installed.
conda list
Step 5 (optional): Type the following command in terminal to open your Anaconda Jupyter notebook to use R with package “tidytext” properly installed.