-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathdev.R
97 lines (76 loc) · 2.55 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
require(devtools)
require(testthat)
library("vdiffr")
load_all()
options(error = NULL)
devtools::test()
## before building, consider recreating the glmmTMB object for the vignette
devtools::build(args = "--compact-vignettes=both",
manual = TRUE,
path = "development/") # R CMD build afex --compact-vignettes="gs+qpdf"
document()
check()
check_built(path = "development/afex_1.4-1.tar.gz")
## works better on windows:
devtools::test(filter = "plot", invert = TRUE)
devtools::test(filter = "plot")
devtools::test(filter = "afex_plot-basics")
devtools::test(filter = "afex_plot-vignette")
test_package("afex", filter = "aov")
test_package("afex", filter = "mixed")
test_package("afex", filter = "mixed-structure")
test_package("afex", filter = "mixed-bugs")
test_package("afex", filter = "mixed-mw")
test_package("afex", filter = "emmeans")
options(error = recover)
options(error = NULL)
options(warn = 2)
options(warn = 0)
#####
rhub::validate_email("[email protected]")
rhub::check_for_cran("development/afex_1.3-1.tar.gz")
####
usethis::use_data(stroop, internal = FALSE, overwrite = TRUE)
usethis::use_vignette("afex_analysing_accuracy_data")
usethis::use_github_action_check_standard()
## check for non-ASCII characters in examples:
for (f in list.files("examples/", full.names = TRUE)) {
cat(f, "\n")
tools::showNonASCIIfile(f)
}
## check for non-ASCII characters in R files:
for (f in list.files("R/", full.names = TRUE)) {
cat(f, "\n")
tools::showNonASCIIfile(f)
}
## check for non-ASCII characters in Rd files:
for (f in list.files("man/", full.names = TRUE)) {
cat(f, "\n")
tools::showNonASCIIfile(f)
}
### add new data sets:
usethis::use_data(laptop_urry2021)
## resave extdata:
rda_files <- list.files("inst/extdata/", full.names = TRUE)
for (i in rda_files) tools::resaveRdaFiles(i)
#install.packages("afex", dependencies = TRUE)
#devtools::build()
devtools::build_vignettes()
clean_vignettes(pkg = ".")
devtools::build(args = "--compact-vignettes=both")
### add packages
usethis::use_package("statmod", "Suggests")
usethis::use_package("rstanarm", "Suggests")
usethis::use_package("brms", "Suggests")
usethis::use_package("cowplot", "Suggests")
usethis::use_package("vdiffr", "Suggests")
#usethis::use_package("GLMMadaptive", "Suggests")
usethis::use_readme_rmd()
usethis::use_cran_badge()
usethis::use_code_of_conduct()
### check reverse dependencies:
library(revdepcheck) # see https://github.com/r-lib/revdepcheck
revdep_check(num_workers = 4)
revdep_summary()
revdep_details(revdep = "r2glmm")
Sys.setenv(R_BIOC_VERSION = "3.18")