Body
This article describes how to setup the FiGASR R package. It is a user-specific installation, which means that each person signing into a lab computer must individually do these steps.
Prerequisites
- R, RTools, and RStudio
- Anaconda3
- Currently the only computer lab this is applicable to is the Bloomberg Lab.
Setup the Anaconda Path in RStudio
- Open the RStudio application.
- Click on the Tools dropdown menu, then select Global Options.
- Click on the Python Tab on the left, then click Select next to the Python Interpreter field.
- Go to the Conda Environments tab and select the available Anaconda option.
- Click OK and Apply.
Install FiGASR
With RStudio open run these commands in the R shell at the bottom:
devtools::install_github("lucabarbaglia/FiGASR")
FiGASR::figas_install()
- The install.packages command may prompt you to update existing packages. You can press Enter to skip this step.
- You may get warning about UNC paths not supported. These are safe to ignore.
- You will get an warning about an error in the SpacyR package if the installation finished as expected. Continue to the next section to resolve the issue in the python environment.
-
Error in spacyr::spacy_download_langmodel(model = "en_core_web_lg", envname = envname, :
unused arguments (model = "en_core_web_lg", envname = envname, conda = conda
Configure the Spacy Module
- From the Start Menu, open the Anaconda Powershell Prompt shortcut.
- Enter these commands into the Powershell window that appears:
conda activate figas_condaenv
python -m spacy download en_core_web_lg
- Close the Powershell window once the Spacy configuration finishes. The FiGASR package can now be loaded and used in RStudio.