-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation procedure #1
Comments
Thanks for reporting this issue! it allowed me to finally figure out what was going on. It's a bug in the CRAN version of |
Finally got around to testing this. Cleaned the slate before trying, to be sure uninstalled everything, wiped the library foder, reinstalled R and RStudio.
This is irrespective of whether or not I have RTools installed and in the PATH. Some more research reveals that this is a known windows issue.
Looking at the source code of Also, running As I was able to install using the procedure described in the original issue description, I guess the current situation is just what windows people have to live with until devtools 1.13 hits CRAN. |
Ah right, the problem with the Windows DLLs. Unfortunately |
No hassle. As I said before, I've noted down which packages to install once and can install
At this point, GetExtension <- function()
{
if (.Platform$OS.type == "windows")
return("zip")
else
return("tgz")
}
#Modified version of devtools::build_github_devtools, installs arbitrary revision of devtools
BuildCustomDevtoolsInstallation <- function (outfile = NULL, revision = "1ce84b04568ff7846c3da754f28e7e22a23c8737")
{
if (!has_devel()) {
stop("This requires a working development environment.")
}
ext <- GetExtension()
if (is.null(outfile))
outfile <- paste0("./devtools.", ext)
if (is.null(revision))
revision <- master
url <- paste0("https://github.com/hadley/devtools/archive/", revision, ".zip")
message("Downloading devtools from ", url)
bundle <- file.path(tempdir(), paste0("devtools-", revision, ".zip"))
request <- httr::GET(url)
httr::stop_for_status(request)
writeBin(httr::content(request, "raw"), bundle)
on.exit(unlink(bundle))
utils::unzip(bundle, exdir = tempdir())
pkgdir <- file.path(tempdir(), paste0("devtools-", revision))
#Install this particular devtools version dependencies
install_deps(pkgdir)
built_pkg <- devtools::build(pkgdir, binary = TRUE)
message("Renaming file to ", outfile)
file.rename(built_pkg, outfile)
invisible(outfile)
}
InstallIsorunN2O <- function()
{
#Install devtools
install.packages("devtools")
#make devtools namespace available
library(devtools)
#build desired revision of devtools
BuildCustomDevtoolsInstallation()
#no longer use devtools namespace
detach("package:devtools", unload=TRUE)
#Now restart R to make sure dll's are unloaded
.rs.restartR()
#install
install.packages("./devtools.zip", repos = NULL)
#delete zipped build
unlink("./devtools.zip")
#install isorunN2O
devtools::install_github("sebkopf/isotopia", build_vignettes = TRUE, dependencies = TRUE)
devtools::install_github("sebkopf/isoread", build_vignettes = TRUE, dependencies = TRUE)
devtools::install_github("sebkopf/isorunN2O", build_vignettes = TRUE, dependencies = TRUE)
} to try and install using the revision Long story short: Neither that particular version nor the current Master (
multiple times. Looks like this bug in devtools is not resolved in master after all... |
To finish up, this is what I would currently run to install install.packages(c("devtools", "dplyr", "plotly", "ggplot2", "openxlsx", "rprojroot", "evaluate", "highr"))
devtools::install_github("sebkopf/isotopia", build_vignettes = TRUE, dependencies = TRUE)
devtools::install_github("sebkopf/isoread", build_vignettes = TRUE, dependencies = TRUE)
devtools::install_github("sebkopf/isorunN2O", build_vignettes = TRUE, dependencies = TRUE)
#To get isorunN2O::run_data_viewer() up and running
install.packages(c("R.methodsS3","R.oo", "httpuv", "xtable")) Probably, this needs a working installation of RTools. |
Hey,
total R noob here, running on windows, fresh installation of R 3.3.3, RStudio 1.0.136. First of all, thanks a lot for this great project and particularly the significant amount of documentation you provide. Definitely not something taken for granted!
When following your installation instruction,
devtools::install_github("sebkopf/isotopia", build_vignettes = TRUE, dependencies = TRUE)
ran fine, however I had to iteratively try to rundevtools::install_github("sebkopf/isoread", build_vignettes = TRUE, dependencies = TRUE)
to find out I had to manuallybefore I could install isoread.
Before running
devtools::install_github("sebkopf/isorunN2O", build_vignettes = TRUE, dependencies = TRUE)
, I had to further manuallyand then install RTools.
Interestingly,
Did work before installing RTools and the last three packages.
Is all of this expected behaviour covered by the Troubleshooting part of your Readme or did I do anything wrong?
Apologies if this is not the right place for this.
The text was updated successfully, but these errors were encountered: