-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrafty.make.R
44 lines (32 loc) · 1020 Bytes
/
crafty.make.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
library(roxygen2)
library("devtools")
full <- FALSE
# has_devel() # does not work because of 'C:\Program' is not recognized as an internal or
# external command, operable program or batch file.
pkgsName <- "craftyr"
setwd("/daten/LURG/workspace/")
#create(pkgsName)
setwd(paste("./", pkgsName, sep=""))
#devtools::use_vignette("craftyr-intro")
#devtools::use_vignette("craftyr-raster")
if (full) {
document()
}
setwd("..")
devtools::build(pkgsName)
if (full) {
devtools::build_vignettes(pkgsName)
}
install(pkgsName)
# devtools::install_bitbucket("geoslurg/craftyr@default")
# for eddie (use qlogin session: qlogin -l h_vmem=2G):
# module load R/3.2.2
# R
# .libPaths(.libPaths()[2])
# devtools::install_bitbucket("craftyr", username="geoslurg", ref="default")
if (full) {
browseVignettes("craftyr")
}
## prepare data objects
#cellData <- read.csv("./inst/extdata/NEEDS ADAPTATION/Scenario-0-0-Region-Cell-2010.csv")
#save(cellData, file="./data/cellData.rda")