Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mano-at-sdsc authored Jan 31, 2024
1 parent 912e973 commit 255662f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ These R-based tools enable users to map a list of metabolite names (from a text
To install the current version:

``` r
# For Windows:
# For Windows:

devtools::install_github("metabolomicsworkbench/RefMet")

# If permission issues prevent installation, lib argument can be specified similar to as explained below for the Linux platform below.
# If permission issues prevent installation, lib argument can be specified similar to as explained below for the Linux platform.

# For linux: The use may not have write permission in the standard install location,
# such as, /usr/lib64/R/library, so, one can install it in the user area. The lib argument
# of install_github specifies the library location, e.g., user can specify a subfolder
# in their account where they have write-privilege. In the lib location below, please ensure
# that the subfolder .local/R exists in the user account, else, create it using the linux command mkdir.
# For linux: The use may not have write permission in the standard install location,
# such as, /usr/lib64/R/library, so, one can install it in the user area. The lib argument
# of install_github specifies the library location, e.g., user can specify a subfolder
# in their account where they have write-privilege. In the lib location below, please ensure
# that the subfolder .local/R exists in the user account, else, create it using the linux command mkdir.

USER_HOME=Sys.getenv("HOME");
devtools::install_github("metabolomicsworkbench/RefMet", lib = paste0(USER_HOME, "/.local/R"))
Expand All @@ -32,7 +32,7 @@ devtools::install_github("metabolomicsworkbench/RefMet", lib = paste0(USER_HOME,
Load RefMet in R: For linux, first add paste0(USER_HOME, "/.local/R") to library path.

``` r
.libPaths( c( .libPaths(), paste0(USER_HOME, "/.local/R") )); # Linux only
.libPaths( c( .libPaths(), paste0(USER_HOME, "/.local/R") )); # Linux only
library(RefMet)
```

Expand Down

0 comments on commit 255662f

Please sign in to comment.