knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  warning = FALSE,
  message = TRUE,
  out.width = "100%"
)

Update R version

tidymass require R version > 4.1. You can check your R version in your console:

version

If your R version is < 4.1, please download and install the latest version of R, and then restart your R.

Uninstall tidyTools and metID

If you have installed tinyTools or metID, please uninstall them.

tinyTools has been renamed as tinytools and metID has been renamed as metid. So please uninstall them before you install tidymass. And don't use them any more.

  1. detach them by:
detach("package:tinyTools")
detach("package:metID")
  1. Remove them by:
remove.packages(pkgs = "tinyTools")
remove.packages(pkgs = "metID")
  1. Restart your R session.

If there are errors, ignore them.

Install tidymass from GitLab

Update remotes

You can use the remotes package to install tidymass.

Please update remotes first and then restart your r session.

install.packages("remotes")

Install tidymass

Install tidymass by:

remotes::install_gitlab("jaspershen/tidymass", dependencies = TRUE)

During installing, it may ask you several times: "Would you like to uodate some pacakges?" Just Enter the Enter or Retrun key to skip updates.

![](figures/Screen-Shot 9.png)

Install tidymass packages one by one

If you use the Windows OS and the dependencies can not be installed, try to install all the tidymass packages one by one.

remotes::install_gitlab("jaspershen/masstools", dependencies = TRUE)
remotes::install_gitlab("jaspershen/massdataset", dependencies = TRUE)
remotes::install_gitlab("jaspershen/massqc", dependencies = TRUE)
remotes::install_gitlab("jaspershen/massprocesser", dependencies = TRUE)
remotes::install_gitlab("jaspershen/masscleaner", dependencies = TRUE)
remotes::install_gitlab("jaspershen/massstat", dependencies = TRUE)
remotes::install_gitlab("jaspershen/metid", dependencies = TRUE)
remotes::install_gitlab("jaspershen/metpath", dependencies = TRUE)

Install tidymass from GitHub

Install tidymass

Then install tidymass:

remotes::install_github("tidymass/tidymass", dependencies = TRUE)

During the installation, it will ask if you want to update some packages for few times, just enter Enter or Reurn key to skip it.

If there is a error like below:

Error: Failed to install 'tidymass' from GitHub: HTTP error 403. API rate limit exceeded for 171.66.10.237. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

Try to resolve it by:

  1. In you R console, type this code:
usethis::create_github_token()

It will open a page in browser, and create a "New personal access token" and copy it.

  1. Then type this code:
usethis::edit_r_environ()

and then add one line like below:

GITHUB_PAT=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

The GITHUB_PAT should be yours that is created in step 1.

And then restart R session and try again.

Install tidymass packages one by one

If you use the Windows OS and the dependencies can not be installed, try to install all the tidymass packages one by one.

remotes::install_github("tidymass/masstools", dependencies = TRUE)
remotes::install_github("tidymass/massdataset", dependencies = TRUE)
remotes::install_github("tidymass/massqc", dependencies = TRUE)
remotes::install_github("tidymass/massprocesser", dependencies = TRUE)
remotes::install_github("tidymass/masscleaner", dependencies = TRUE)
remotes::install_github("tidymass/massstat", dependencies = TRUE)
remotes::install_github("tidymass/metid", dependencies = TRUE)
remotes::install_github("tidymass/metpath", dependencies = TRUE)

Install tidymass from Gitee

If you can't install pacakgs from GitHub and GitLab, please try install packags from Gitee.

Install tidymass

Then install tidymass:

remotes::install_git(url = "https://gitee.com/jaspershen/tidymass", dependencies = TRUE)

Install tidymass packages one by one.

If you use the Windows OS and the dependencies can not be installed, try to install all the tidymass packages one by one.

remotes::install_git(url = "https://gitee.com/jaspershen/masstools", dependencies = TRUE)
remotes::install_git(url = "https://gitee.com/jaspershen/massdataset", dependencies = TRUE)
remotes::install_git(url = "https://gitee.com/jaspershen/massqc", dependencies = TRUE)
remotes::install_git(url = "https://gitee.com/jaspershen/massprocesser", dependencies = TRUE)
remotes::install_git(url = "https://gitee.com/jaspershen/masscleaner", dependencies = TRUE)
remotes::install_git(url = "https://gitee.com/jaspershen/massstat", dependencies = TRUE)
remotes::install_git(url = "https://gitee.com/jaspershen/metid", dependencies = TRUE)
remotes::install_git(url = "https://gitee.com/jaspershen/metpath", dependencies = TRUE)

Let me know if you have any questions.

Frequently Asked Questions

  1. Can not install dependent packages raster and Cario

raster is a package in CRAN, try to install it first and then install tidymass.

install.packages("raster")

Cario is a package in CRAN, try to install it first and then install tidymass.

install.packages("Cairo")
  1. Error when install massprocesser

The error is:

Error: .onLoad failed in loadNamespace() for 'affy', details:
  call: assign(".affyInternalEnv", .affyInternalEnv, envir = topenv(parent.frame()))
  error: cannot add binding of '.affyInternalEnv' to the base environment
Execution halted
ERROR: lazy loading failed for package 'massprocesser'
* removing 'D:/R_packages/R4.0/library/massprocesser'

Just try to restart R and install affy.

BiocManager::install("affy")

Session information

sessionInfo()


tidymass/tidymass documentation built on April 5, 2022, 2:10 a.m.