I install the "devtools" package, but when I call it there is no such package
1
0
Entering edit mode
4.0 years ago

Hi all,

I'm trying to install SINCERA package in R, I follow their instructions in github:

install.packages("devtools")
> library(devtools)
Error in library(devtools) : there is no package called ‘devtools’

I have selected all repositories but it doesn't work. Do you know how I can fix this or how I can install the SINCERA package?

Thanks

sincera scRNA-seq RNA-Seq • 5.1k views
ADD COMMENT
0
Entering edit mode
4.0 years ago

Hello. What is the output after you run this:

install.packages("devtools")
ADD COMMENT
0
Entering edit mode

Hello

I get a list of packages which have been successfully unpacked:

package ‘utf8’ successfully unpacked and MD5 sums checked
package ‘lifecycle’ successfully unpacked and MD5 sums checked
package ‘pillar’ successfully unpacked and MD5 sums checked
package ‘pkgconfig’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
ADD REPLY
0
Entering edit mode

Can you show all output after you type each of the following, please?

install.packages("devtools")

require(devtools)

sessionInfo()

any(grepl('devtools', rownames(installed.packages())))
ADD REPLY
0
Entering edit mode
> install.packages("devtools")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/parnian/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependencies ‘ini’, ‘highr’, ‘markdown’, ‘xfun’, ‘clipr’, ‘fs’, ‘gh’, ‘rematch2’, ‘whisker’, ‘rex’, ‘xopen’, ‘brew’, ‘commonmark’, ‘knitr’, ‘xml2’, ‘usethis’, ‘covr’, ‘DT’, ‘git2r’, ‘memoise’, ‘rcmdcheck’, ‘roxygen2’, ‘rversions’, ‘sessioninfo’


  There are binary versions available but the source versions are later:
      binary source needs_compilation
xml2   1.3.1  1.3.2              TRUE
git2r 0.26.1 0.27.1              TRUE

  Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/ini_0.3.1.zip'
Content type 'application/zip' length 15647 bytes (15 KB)
downloaded 15 KB



trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/memoise_1.1.0.zip'
Content type 'application/zip' length 36807 bytes (35 KB)
downloaded 35 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/rcmdcheck_1.3.3.zip'
Content type 'application/zip' length 134242 bytes (131 KB)
downloaded 131 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/roxygen2_7.1.0.zip'
Content type 'application/zip' length 1372340 bytes (1.3 MB)
downloaded 1.3 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/rversions_2.0.1.zip'
Content type 'application/zip' length 68557 bytes (66 KB)
downloaded 66 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/sessioninfo_1.1.1.zip'
Content type 'application/zip' length 46850 bytes (45 KB)
downloaded 45 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/devtools_2.3.0.zip'
Content type 'application/zip' length 351089 bytes (342 KB)
downloaded 342 KB

package ‘ini’ successfully unpacked and MD5 sums checked
package ‘highr’ successfully unpacked and MD5 sums checked
package ‘markdown’ successfully unpacked and MD5 sums checked
package ‘xfun’ successfully unpacked and MD5 sums checked
package ‘clipr’ successfully unpacked and MD5 sums checked
package ‘fs’ successfully unpacked and MD5 sums checked
package ‘gh’ successfully unpacked and MD5 sums checked
package ‘rematch2’ successfully unpacked and MD5 sums checked
package ‘whisker’ successfully unpacked and MD5 sums checked
package ‘rex’ successfully unpacked and MD5 sums checked
package ‘xopen’ successfully unpacked and MD5 sums checked
package ‘brew’ successfully unpacked and MD5 sums checked
package ‘commonmark’ successfully unpacked and MD5 sums checked
package ‘knitr’ successfully unpacked and MD5 sums checked
package ‘xml2’ successfully unpacked and MD5 sums checked
package ‘usethis’ successfully unpacked and MD5 sums checked
package ‘covr’ successfully unpacked and MD5 sums checked
package ‘DT’ successfully unpacked and MD5 sums checked
package ‘git2r’ successfully unpacked and MD5 sums checked
package ‘memoise’ successfully unpacked and MD5 sums checked
package ‘rcmdcheck’ successfully unpacked and MD5 sums checked
package ‘roxygen2’ successfully unpacked and MD5 sums checked
package ‘rversions’ successfully unpacked and MD5 sums checked
package ‘sessioninfo’ successfully unpacked and MD5 sums checked
package ‘devtools’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\parnian\AppData\Local\Temp\RtmpCSc7nB\downloaded_packages

And I follow the path above (C:\Users\parnian\AppData\Local\Temp\RtmpCSc7nB\downloaded_packages) but it doesn't exist.

> require(devtools)
Loading required package: devtools
Loading required package: usethis

The devtool is now in my list of packages. Thanks.

ADD REPLY
1
Entering edit mode

Great work!

ADD REPLY

Login before adding your answer.

Traffic: 2524 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