This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error in library(preproc) : there is no package called ‘preproc’

While running this script of metaOmics-

shiny::runApp('metaOmics', port=9987, launch.browser=T)

Getting error like this-

 √  checking for file 'C:\Users\AppData\Local\Temp\RtmpKU9bAR\remotes24f4668b6da7\preproc-master/DESCRIPTION' ...
    -  preparing 'preproc':
    √  checking DESCRIPTION meta-information ... 
    -  checking for LF line-endings in source and make files and shell scripts (346ms)
    -  checking for empty or unneeded directories
    -  looking to see if a 'data/datalist' file should be added
    -  building 'preproc_1.2-4.tar.gz'

    ERROR: dependency 'DMwR' is not available for package 'preproc'
    * removing 'C:/R/R-4.0.5/library/preproc'
    Warning in i.p(...) :
      installation of package ‘C:/Users/kiit1/AppData/Local/Temp/RtmpKU9bAR/file24f433e4903/preproc_1.2-4.tar.gz’ had non-zero exit status
    Error in library(preproc) : there is no package called ‘preproc’

How to solve it?

metaomics r packages rstudio

You first need to install DMwR:

BiocManager::install('DMwR')

..or:

install.packages('DMwR')

Then try to install preproc

Already tried that and getting error like this-

 'getOption("repos")' replaces Bioconductor standard repositories, see '?repositories' for details

replacement repositories:
    CRAN: https://mirrors.ustc.edu.cn/CRAN

Bioconductor version 3.12 (BiocManager 1.30.12), R 4.0.5 (2021-03-31) Installing package(s) 'DMwR' Warning message: package ‘DMwR’ is not available for this version of R

A version of this package for your version of R might be available elsewhere, see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

1 answer

Then you have to compile the latest of the archived releases https://cran.r-project.org/src/contrib/Archive/DMwR/ from source (tarball), see for how-to: https://stackoverflow.com/questions/4739837/how-do-i-install-an-r-package-from-the-source-tarball-on-windows

Solved. Very grateful for the precious help

Log in to answer this question.