forked from lcreteig/amsterdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_usethis.R
48 lines (36 loc) · 1.63 KB
/
_usethis.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
# N.B. This is for internal use and not distributed with the amsterdown package
available::available("amsterdown") # check whether package names is avaiable, and there's no conflicting interpretations
# initial setup
usethis::create_package("~/amsterdown") # make package skeleton
usethis::use_git() # add version control
usethis::use_github() # add github repository
# add rmarkdown template skeleton
usethis::use_rmarkdown_template(template_name = "UvA thesis",
template_dir = "thesis",
template_description = "Template for creating a University of Amsterdam PhD thesis using RMarkdown and the bookdown package.")
# add license info
usetthis::use_cc0_license() # public domain, as there's not much code in this package
# add dependency
usethis::use_package("bookdown")
# add README
usethis::use_readme_rmd()
# add continuous integration to:
# - check package automatically
# - deploy sample output automatically
usethis::use_travis(ext = "com")
# hide script that deploys from package
usethis::use_build_ignore(c("R/_render.r", "R/_usethis.R"))
# add package-level documentation
usethis::use_package_doc()
# signal development status of package
usethis::use_lifecycle()
usethis::use_lifecycle_badge("experimental")
# setup package documentation as website
usethis::use_pkgdown()
usethis::use_article("amsterdown")
usethis::use_article("tips-tricks", title = "Tips & Tricks")
usethis::use_article("customization", title = "Further customization (PDF)")
usethis::use_article("publishing", title = "Publishing your thesis online (HMTL)")
pkgdown::build_site()
# setup spell checking
usethis::use_spell_check()