Closed mistyblue17 closed 5 years ago
Hi @mistyblue17, thanks for being the brave first person (I think) to give this a shot!
It looks like the problem is that you do not have the package reshape2
installed, which is one of the suggested packages which is necessary for the vignette but not the functions in streamDepletr
itself.
Perhaps I will add this to the dependencies in the future to avoid this problem, but for now try this:
# check for missing packages and install any that you don't have
list.of.packages<- c("Rmpfr", "dplyr", "magrittr", "knitr", "rmarkdown", "dismo", "sp", "raster", "deldir", "rgeos", "ggplot2", "reshape2", "sf", "scales")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
# now, install streamDepletr
devtools::install_github("szipper/streamDepletr", build_vignettes=T)
Let me know if that works!
That worked!! Thank you for the prompt reply.
Copied and ran code from your install instructions using RStudio v. 1.1.456 and R v. 3.5.1, but install failed. Removed and reinstalled Devtools.
Downloading GitHub repo szipper/streamDepletr@master from URL https://api.github.com/repos/szipper/streamDepletr/zipball/master Installing streamDepletr "C:/PROGRA~1/R/R-35~1.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore \ --quiet CMD build \ "C:\Users\misty\AppData\Local\Temp\RtmpwFly9k\devtools529451532c45\szipper-streamDepletr-3405c61" \ --no-resave-data --no-manual