install.packages("bfast")
install.packages("phenopix")
here()
setwd("~/shares/home/code/R/_gitlab/")
pkgs <- c("RobinsonMaps")
i <- 1
setwd(pkgs[i])
cmd <- paste("R CMD INSTALL --html ", pkgs[i], " --resave-data")
tryCatch(system(cmd), finally=setwd(path))
getwd()
pkgs <- c("RobinsonMaps", "ModelDataComp")
setwd("..")
setwd(pkgs[i])
cmd <- paste("R CMD INSTALL --html ", pkgs[i], " --resave-data")
tryCatch(system(cmd))
setwd("..")
getwd()
pkgs <- c("RobinsonMaps", "ModelDataComp")
i <- 2
setwd(pkgs[i])
cmd <- paste("R CMD INSTALL --html ", pkgs[i], " --resave-data")
tryCatch(system(cmd))
setwd("..")
install.packages("lhs")
setwd("~/shares/home/code/R/_gitlab/")
pkgs <- c("RobinsonMaps", "ModelDataComp")
i <- 2
setwd(pkgs[i])
cmd <- paste("R CMD INSTALL --html ", pkgs[i], " --resave-data")
tryCatch(system(cmd))
setwd("..")
install.packages("randomForest")
i <- 2
setwd(pkgs[i])
cmd <- paste("R CMD INSTALL --html ", pkgs[i], " --resave-data")
tryCatch(system(cmd))
setwd("..")
pkgs <- c("RobinsonMaps", "ModelDataComp", "Raster4ML")
i <- 3
setwd(pkgs[i])
cmd <- paste("R CMD INSTALL --html ", pkgs[i], " --resave-data")
tryCatch(system(cmd))
setwd("..")
install.packages("ICEbox")
install.packages("ff")
setwd("~/shares/home/code/R/greenbrown")
cmd <- paste("R CMD INSTALL --html greenbrown --resave-data")
tryCatch(system(cmd))
setwd("~/shares/home/code/R/_gitlab/")
pkgs <- c("RobinsonMaps", "ModelDataComp", "Raster4ML")
i <- 3
setwd(pkgs[i])
cmd <- paste("R CMD INSTALL --html ", pkgs[i], " --resave-data")
tryCatch(system(cmd))
setwd("..")
setwd("~/shares/home/code/R/_gitlab-pik/LPJmLmdi/")
tryCatch(system("R CMD INSTALL --html LPJmLmdi --resave-data"))
grep("o", letters)
# package development is based on inlinedocs (for in-line documentation)
library(inlinedocs)
library(here)
# name and directory of package
pkg.name <- "LPJmLmdi"
path <- paste(here::here(), sep="/")
# Building is only required if you further develop the package, i.e. if you want to newly
# create help files and perform tests. Continue with the next section if you just downloaded
# the package and you want to install it.
# build package structure and Rd files
setwd(path)
package.skeleton.dx(pkg.name)
# check package
cmd <- sprintf(paste("%s CMD check --as-cran", pkg.name), file.path(R.home("bin"), "R"))
system(cmd, intern=TRUE)
# check package
cmd <- sprintf(paste("%s CMD check --as-cran", pkg.name), file.path(R.home("bin"), "R"))
system(cmd, intern=TRUE)
# build package
cmd <- sprintf(paste("%s CMD build --resave-data", pkg.name), file.path(R.home("bin"), "R"))
system(cmd, intern=TRUE)
# installation
setwd(here::here())
cmd <- paste("R CMD INSTALL --html", pkg.name, "--resave-data")
tryCatch(system(cmd), finally=setwd(path))
# load package
library(pkg.name, character.only=TRUE)
?PlotParUnc
