-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevtstuff_history.R
executable file
·102 lines (80 loc) · 2.85 KB
/
devtstuff_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
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
98
99
100
101
# the goal of this file is to keep track of all devtools/usethis
# call you make for yout project
# Feel free to cherry pick what you need and add elements
# install.packages("desc")
# install.packages("devtools")
# install.packages("usethis")
# Hide this file from build
usethis::use_build_ignore("devstuff_history.R")
# DESCRIPTION
library(desc)
# Create and clean desc
my_desc <- description$new("DESCRIPTION")
# Set your package name
my_desc$set("Package", "cellviz3d")
#Set your name
my_desc$set("Authors@R", "person('Marion', 'Louveaux', email = 'marion.louveaux@gmail.com', role = c('cre', 'aut'))")
# Remove some author fields
my_desc$del("Maintainer")
# Set the version
my_desc$set_version("0.1.0.9000")
# The title of your package
my_desc$set(Title = "Tools for 3D/4D interactive visualisation of cells and biological tissues")
# The description of your package
my_desc$set(Description = "Proposes visualisation of meshes created from the segmentation of 3D/4D microscopic images, and point clouds. In particular, it helps visualising meshes from MorphographX, in combination with {mgx2r}, or point clouds from the MaMuT Fiji plugin, in combination with {mamut2r}.")
# Depends
my_desc$set(Depends = "R (>= 3.4)")
# The urls
my_desc$set("URL", "https://github.com/marionlouveaux/cellviz3d")
my_desc$set("BugReports", "https://github.com/marionlouveaux/cellviz3d/issues")
# Save everyting
my_desc$write(file = "DESCRIPTION")
# If you want to use a licence, the code of conduct, the lifecycle badge, and the README
usethis::use_gpl3_license(name = "Marion Louveaux")
usethis::use_readme_rmd()
usethis::use_code_of_conduct()
usethis::use_lifecycle_badge("Experimental")
usethis::use_news_md()
# For data
usethis::use_data_raw()
# For tests
usethis::use_testthat()
usethis::use_test("app")
# Dependencies
usethis::use_pipe()
# usethis::use_package("shiny")
# usethis::use_package("DT")
# usethis::use_package("stats")
# usethis::use_package("graphics")
# usethis::use_package("colorRamps")
# usethis::use_package("dplyr")
# usethis::use_package("glue")
# usethis::use_package("plotly")
# usethis::use_package("purrr")
# usethis::use_package("tidyr")
# usethis::use_package("utils")
# # Suggests
# usethis::use_package("knitr", type = "Suggests")
# usethis::use_package("rmarkdown", type = "Suggests")
# usethis::use_package("testthat", type = "Suggests")
attachment::att_to_description(extra.suggests = "pkgdown")
# Reorder your DESC
# usethis::use_tidy_description()
# Vignette
usethis::use_vignette("mgx-viz3d")
devtools::build_vignettes()
# Github
usethis::use_git()
usethis::browse_github_pat()
usethis::use_github()
usethis::use_github_links()
# Codecov
usethis::use_travis()
# usethis::use_appveyor()
usethis::use_coverage()
usethis::use_build_ignore("appveyor.yml")
usethis::use_build_ignore(".travis.yml")
# Test with rhub
# rhub::check_for_cran()
# Vignettes
devtools::build_vignettes()