-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdev_history.R
47 lines (40 loc) · 1.35 KB
/
dev_history.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
usethis::use_build_ignore("dev_history.R")
# Licence ---
usethis::use_gpl3_license()
# description ----
library(desc)
unlink("DESCRIPTION")
my_desc <- description$new("!new")
my_desc$set_version("0.0.0.9000")
my_desc$set(Package = "arabesqueFOSS4G2021")
my_desc$set(Title = "Article prepared for the FOSS4G 2021 comparing Arabesque to other flow map applications in the geoweb")
my_desc$set(Description = "Contains the article source plus data and code")
my_desc$set("Authors@R",
'c(
person("Nicolas", "Roelandt", email = "nicolas.roelandt@univ-eiffel.fr", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-9698-4275")),
person(given = "gflowiz", role = "cph")
)')
my_desc$set("VignetteBuilder", "knitr")
my_desc$del("Maintainer")
my_desc$del("URL")
my_desc$del("BugReports")
my_desc$write(file = "DESCRIPTION")
# Documentation ----
usethis::use_data_raw()
# _Readme
usethis::use_readme_md()
usethis::use_git()
# Vignette
usethis::use_vignette("article_FOSS4G2021")
devtools::build_vignettes()
# pkgdown and GH actions
usethis::use_pkgdown()
usethis::use_github_action("pkgdown")
usethis::use_build_ignore("_pkgdown.yml")
# build website locally
pkgdown::build_articles()
# add function prepare_nodes
usethis::use_package("sf")
usethis::use_package("dplyr")
usethis::use_r("prepare_nodes")
usethis::use_test()