Skip to content

Troubleshooting

malialiu edited this page Mar 29, 2023 · 2 revisions

1. Installing R Packages

Sometimes, you may encounter difficulties when trying to install an R package using the standard install.packages() function, especially if the package is not available on the Comprehensive R Archive Network (CRAN). In such cases, you can try installing the package directly from GitHub using the devtools package.

To install a package from GitHub using devtools, you can use the install_github() function. For example, to install the JirAgileR package from GitHub, use the following command:

devtools::install_github("matbmeijer/JirAgileR")

This command will download and install the package from the GitHub repository.

On Ubuntu, you may encounter issues when trying to install devtools using the standard install.packages() function. This is often due to missing dependencies, such as the systemfonts package which requires libfontconfig1-dev and libharfbuzz-dev. Therefore, to resolve this issue, you can run the following command in the terminal:

sudo apt-get install libharfbuzz-dev libfribidi-dev 

This command will help you install the missing dependencies for systemfonts and allow you to install packages using devtools.

Clone this wiki locally