Skip to content

Commit

Permalink
rstudio: Use correct package installation command
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Staudinger <[email protected]>
  • Loading branch information
Staudey committed Jun 7, 2024
1 parent 8d11c38 commit c861f34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/user/software/development/r-and-rstudio.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ The first step in setting up RStudio is to download and install it. This can be
- Alternatively you can enter the **Software Center**, select **Programming Languages & Tools**, then select **Integrated Development Environments** and scroll down until you see **r**. _The list itself is in alphabetical order so it will be near the bottom._
- The third option for install is to open your terminal and enter the command `sudo eopkg it rstudio`

### How to use `install.package()` on Solus
### How to use `install.packages()` on Solus

Unless you are only going to use base R functions, you will need to make use of `install.package()` within R to install additional libraries. To use this function within R you need to install certain development packages which vary depending on the library you are trying to enable within R.
Unless you are only going to use base R functions, you will need to make use of `install.packages()` within R to install additional libraries. To use this function within R you need to install certain development packages which vary depending on the library you are trying to enable within R.

On other Linux distros (like Debian, Ubuntu, and Fedora) this is accomplished through the installation of r-devel. However since Solus does not have an r-devel package these dependencies have to be installed through other means.

Expand All @@ -35,9 +35,9 @@ There two main solus packages that will include many of the dependencies require
- `system.devel` can **ONLY** be installed from within terminal by running the command `sudo eopkg it -c system.devel`
- `curl-devel` can be found by searching in the **Software Center** or by running the command `sudo eopkg it curl-devel`

Once these two Solus packages are installed `install.package()` will work as usual within R for most packages like `tidyverse`.
Once these two Solus packages are installed `install.packages()` will work as usual within R for most packages like `tidyverse`.

If when you try to install a CRAN library with `install.package()` from within R and you are presented with an error that says `...exited with non zero exit status` this is most likely because one of the required dependencies, _which will be listed within the R console detailing the error_, is contained within a Solus devel package you have not yet installed.
If when you try to install a CRAN library with `install.packages()` from within R and you are presented with an error that says `...exited with non zero exit status` this is most likely because one of the required dependencies, _which will be listed within the R console detailing the error_, is contained within a Solus devel package you have not yet installed.

#### Additional discovered dependencies

Expand Down

0 comments on commit c861f34

Please sign in to comment.