Error in library(preproc) : there is no package called ‘preproc’
1
0
Entering edit mode
3.6 years ago
xxxxxxxx ▴ 20

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 • 2.4k views
ADD COMMENT
2
Entering edit mode

Also, can you please cease posting different versions of the same question? It is frustrating.

Please keep everything in the same thread by adding comments where necessary.

ADD REPLY
1
Entering edit mode

I think in this case the issue is that DMwR has been removed from CRAN, but the prepoc package from metaOmics relies on it.

You might want to submit an issue to the developer of metaOmics:

https://github.com/metaOmics/preproc

You could also try installing the DMwR package manually.

ADD REPLY
0
Entering edit mode

You first need to install DMwR:

BiocManager::install('DMwR')

..or:

install.packages('DMwR')

Then try to install preproc

ADD REPLY
0
Entering edit mode

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
ADD REPLY
2
Entering edit mode
3.6 years ago
ATpoint 85k

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

ADD COMMENT
0
Entering edit mode

Solved. Very grateful for the precious help

ADD REPLY

Login before adding your answer.

Traffic: 1766 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6