-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile_function.R
60 lines (41 loc) · 1.24 KB
/
compile_function.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
library(devtools)
document()
?library(Rcpp)
library(RcppArmadillo)
use_rcpp_armadillo()
install_github("thebrisklab/singR",force=TRUE)
install.packages("testthat")
library(testthat)
testthat::skip_on_cran()
use_package("ICtest")
usethis::use_data(simdata, overwrite = TRUE,compress = TRUE)
usethis::use_data(exampledata, overwrite = TRUE,compress = TRUE)
data(simdata)
data(exampledata)
usethis::use_data_raw()
exampledata = data
class(mj)
usethis::use_test("name")
devtools::test()
usethis::use_testthat()
use_test("NameOfTest")
use_mit_license(copyright_holder = NULL)
devtools::check(env_vars = c(NOT_CRAN = "FALSE")) # cran check
devtools::test() # test that
use_citation()
library(spelling)
devtools::spell_check()
spelling::updatae_wordlist()
usethis::use_github_action_check_standard()
usethis::use_github_actions_badge(name = "R-CMD-check",
repo_spec = NULL)
usethis::use_coverage()
usethis::use_github_action("test-coverage")
usethis::use_vignette("my-vignette","singR")
library(testthat)
tools::checkRdaFiles()
devtools::use_vignette("testR-tutorial")
use_vignette("singR-tutorial")
devtools::build_rmd()
packinfo <- installed.packages(fields = c("Package","Version"))
packinfo[packinfo[,1]=="ICtest",]