FiGASR Installation

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

  1. Open the RStudio application.
  2. Click on the Tools dropdown menu, then select Global Options.
  3. Click on the Python Tab on the left, then click Select next to the Python Interpreter field.
  4. Go to the Conda Environments tab and select the available Anaconda option. Uploaded Image (Thumbnail)
  5. Click OK and Apply.Uploaded Image (Thumbnail)

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

  1. From the Start Menu, open the Anaconda Powershell Prompt shortcut.Uploaded Image (Thumbnail)
  2. Enter these commands into the Powershell window that appears:
    conda activate figas_condaenv
    python -m spacy download en_core_web_lg
    
    Uploaded Image (Thumbnail)
  3. Close the Powershell window once the Spacy configuration finishes. The FiGASR package can now be loaded and used in RStudio.