-
Notifications
You must be signed in to change notification settings - Fork 18
/
make.description.R
61 lines (57 loc) · 1.9 KB
/
make.description.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
fn <- 'spict/DESCRIPTION'
date <- format(Sys.Date(), "%Y-%m-%d")
cat('Package: spict
Type: Package
Title: Stochastic surplus Production model in Continuous-Time (SPiCT)
Version: 1.3.8
Date:', date, '
Authors@R: c(person(given="Martin Waever",
family="Pedersen",
email="[email protected]",
role=c("aut", "cre", "cph")),
person(given="Casper Willestofte",
family="Berg",
email="[email protected]",
role=c("aut"),
comment=c()),
person(given="Tobias Karl",
family="Mildenberger",
email="[email protected]",
role=c("aut"),
comment=c(ORCID="0000-0002-6631-7524")),
person(given="Alexandros",
family="Kokkalis",
email="[email protected]",
role=c("aut"),
comment=c(ORCID="0000-0002-9662-6272")))
Description: Fits a surplus production model to fisheries catch and biomass index data.
License: GPL (>=3)
Depends:
R (>= 3.0),
TMB (>= 1.7.1)
LinkingTo: TMB, RcppEigen
Imports:
ellipse
Suggests:
parallel,
mgcv,
rjags,
coda,
knitr,
rmarkdown
LazyData: true
Encoding: UTF-8
VignetteBuilder: knitr\n',
file=fn)
# Add Git hub stuff
sha <- system('git rev-parse HEAD', intern=TRUE)
branch <- system('git rev-parse --abbrev-ref HEAD', intern=TRUE)
##cat(paste('GithubRepo: spict\n'), file=fn, append=TRUE)
##cat(paste('GithubRef:', branch, '\n'), file=fn, append=TRUE)
##cat(paste('GithubSHA1:', sha, '\n'), file=fn, append=TRUE)
pd <- utils::packageDescription('roxygen2')
v <- paste0(pd$Package, "_v", pd$Version)
v <- regmatches(v, regexpr("v(.*)$", v))
v <- substr(v, 2, nchar(v))
cat("RoxygenNote: ", v, "\n", file=fn, append=TRUE, sep = "")
##save('sha', file='spict/data/sha.rda')