Rmstoolkitlib provides an R interface to the MSToolkit library for reading raw mass spectrometry data.
install.packages('Rmstoolkitlib', repos = c('https://rickhelmus.r-universe.dev', 'https://cloud.r-project.org'))# Install the package from the source repository
remotes::install_github("rickhelmus/Rmstoolkitlib")If you face errors during installation it may be due to temporary installation paths with spaces in them (especially common on Windows). As a workaround, you can tempoerarily change the TMPDIR environment variable during package installation. For instance:
withr::local_envvar(list(TMPDIR = "C:/Rtmpdir"), remotes::install_github("rickhelmus/Rmstoolkitlib"))For more information, refer to the original MSToolkit project:
https://github.com/mhoopmann/mstoolkit
- Add
RmstoolkitlibtoImportsorSuggests(notLinkingTo) in your packageDESCRIPTIONfile. - Add the following to your
src/Makevarsand/orsrc/Makevars.winfile:
PKG_CXXFLAGS += $(shell echo 'Rmstoolkitlib::pkgconfig("PKG_CXXFLAGS")' | "${R_HOME}/bin/R" --vanilla --slave)
PKG_LIBS += $(shell echo 'Rmstoolkitlib::pkgconfig("PKG_LIBS")' | "${R_HOME}/bin/R" --vanilla --slave)Feel free to contribute or raise issues on the repository.