source("https://bioconductor.org/biocLite.R")
biocLite()
biocLite(c("DNAcopy", "preprocessCore"))
and I got the following error when running the installed tool on galaxy:
Installing package(s) ‘DNAcopy’, ‘preprocessCore’ Warning in install.packages(pkgs = doing, lib = lib, ...) : 'lib = "/usr/local/lib/R/site-library"' is not writable Error in install.packages(pkgs = doing, lib = lib, ...) : unable to install packages Calls: biocLite ... .biocLiteInstall -> .reposInstall -> install.packages Execution halted