Installing the R context


#1

Hello,

It appears that on first install attempt, RStudio needed to install RBuildTools.

I then again tried several times to install the R package for stencila. It fails as shown below.

Has anyone successfully established the R context for stencila?

Thank you.

devtools::install_github(“stencila/r”)
Downloading GitHub repo stencila/r@master
from URL https://api.github.com/repos/stencila/r/zipball/master
Installing stencila
Downloading GitHub repo klutometis/roxygen@bbf259ddee033a873426ded1e83cdd344b986595
from URL https://api.github.com/repos/klutometis/roxygen/zipball/bbf259ddee033a873426ded1e83cdd344b986595
Installing roxygen2
Downloading GitHub repo r-lib/pkgload@master
from URL [as a new user I’m allowed only 2 URLs, so I removed this one]
Installing pkgload
“C:/PROGRA~1/MICROS~3/MLSERV~1/R_SERVER/bin/x64/R” --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL “C:/Users/pbell/AppData/Local/Temp/RtmpeCgKLY/devtools5cd45dca5aa8/r-lib-pkgload-c699550” --library=“C:/Users/pbell/Documents/R/win-library/3.4” --install-tests

ERROR: dependency ‘pkgbuild’ is not available for package 'pkgload’
removing 'C:/Users/pbell/Documents/R/win-library/3.4/pkgload’
In R CMD INSTALL
Installation failed: Command failed (1)
“C:/PROGRA~1/MICROS~3/MLSERV~1/R_SERVER/bin/x64/R” --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL “C:/Users/pbell/AppData/Local/Temp/RtmpeCgKLY/devtools5cd48f065aa/klutometis-roxygen-bbf259d” --library=“C:/Users/pbell/Documents/R/win-library/3.4” --install-tests

ERROR: dependency ‘pkgload’ is not available for package 'roxygen2’
removing 'C:/Users/pbell/Documents/R/win-library/3.4/roxygen2’
In R CMD INSTALL
Installation failed: Command failed (1)
“C:/PROGRA~1/MICROS~3/MLSERV~1/R_SERVER/bin/x64/R” --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL “C:/Users/pbell/AppData/Local/Temp/RtmpeCgKLY/devtools5cd47ea21a1b/stencila-r-c136356” --library=“C:/Users/pbell/Documents/R/win-library/3.4” --install-tests

ERROR: dependency ‘roxygen2’ is not available for package 'stencila’
removing 'C:/Users/pbell/Documents/R/win-library/3.4/stencila’
In R CMD INSTALL
Installation failed: Command failed (1)


#2

Hi @lastman,

Thanks for your interest in Stencila and sorry for the trouble!

Looks like you don’t have graph package from Bioconductor. Can you try:

source("https://bioconductor.org/biocLite.R")
biocLite("graph")

And then:

devtools::install_github("stencila/r")
stencila:::register()

Please let me know if it helped
I will update the instructions on the website.