-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdev.r
45 lines (34 loc) · 1.09 KB
/
dev.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
# A collection of miscellanous lines you can run in your development of this
# package. Nothing in here is exported or used anywhere else. Purely
# helpers for development. This is just a scraps file.
granatum.other = function () {
library(devtools)
# Check package
devtools::check()
# Update datasets
# Saving datasets
use_data(someData, overwrite = TRUE)
install.packages("roxygen2")
install.packages("testthat")
install.packages("usethis")
install.packages("covr")
install.packages("DT")
usethis::use_test("nodesDiffExp")
devtools::test()
granatum.codeCoverage()
devtools::build_win()
create("cats")
devtools::release()
# devtools::revdep_check()
install.packages("granatum_0.1.0.tar.gz", repos = NULL, type ="source")
}
granatum.makeDoc = function (dataFrame, title = substitute(dataFrame)) {
output = c(paste("#'", title), "#' @format data.frame", gsub("^","#'",capture.output(str(dataFrame))), dQuote(title))
cat(output, sep="\n")
}
granatum.codeCoverage = function () {
library(covr)
report()
}
# R CMD build .
# R CMD check --as-cran granatum.tar.gz