|
a |
|
b/dev/dev.R |
|
|
1 |
# dependency package |
|
|
2 |
usethis::use_package("stats") |
|
|
3 |
usethis::use_package("utils") |
|
|
4 |
usethis::use_package("DESeq2") |
|
|
5 |
usethis::use_package("BiocGenerics") |
|
|
6 |
usethis::use_package("ggplot2") |
|
|
7 |
usethis::use_package("ggpubr") |
|
|
8 |
usethis::use_package("tibble") |
|
|
9 |
|
|
|
10 |
# license |
|
|
11 |
usethis::use_mit_license("Dongyue Yu") |
|
|
12 |
|
|
|
13 |
# readme |
|
|
14 |
usethis::use_readme_md() |
|
|
15 |
|
|
|
16 |
# adds a Code of Conduct |
|
|
17 |
usethis::use_code_of_conduct(contact = "yudongyue@mail.nankai.edu.cn") |
|
|
18 |
|
|
|
19 |
# vignette |
|
|
20 |
usethis::use_vignette("a_example_workflow") # optional |
|
|
21 |
devtools::install(build_vignettes = TRUE) # optional |
|
|
22 |
|
|
|
23 |
## a website |
|
|
24 |
# Run once to configure your package to use pkgdown |
|
|
25 |
usethis::use_pkgdown() # optional |
|
|
26 |
pkgdown::build_site() # optional |
|
|
27 |
|
|
|
28 |
## add git |
|
|
29 |
usethis::use_git() |
|
|
30 |
usethis::use_github() |
|
|
31 |
|
|
|
32 |
# CI |
|
|
33 |
usethis::use_github_action_check_standard() |
|
|
34 |
|
|
|
35 |
# CRAN |
|
|
36 |
# Spell check |
|
|
37 |
devtools::spell_check() |
|
|
38 |
# Regular local tests |
|
|
39 |
devtools::check() |
|
|
40 |
# rhub cross-platform tests |
|
|
41 |
rhub::check_for_cran() |
|
|
42 |
# Windows platform-only test |
|
|
43 |
devtools::check_win_devel() # optional |
|
|
44 |
# rhub Windows platform-only test |
|
|
45 |
rhub::check_for_cran( |
|
|
46 |
platform="windows-x86_64-devel", |
|
|
47 |
env_vars=c(R_COMPILE_AND_INSTALL_PACKAGES = "always") |
|
|
48 |
) # optional |
|
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
|
52 |
# Check before release |
|
|
53 |
devtools::release() |