-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcreate_package.Rd
94 lines (85 loc) · 2.69 KB
/
create_package.Rd
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_package.R
\name{create_package}
\alias{create_package}
\title{Create an R package according to INBO requirements}
\usage{
create_package(
package,
path = ".",
title,
description,
keywords,
language = "en-GB",
license = c("GPL-3", "MIT"),
communities = character(0),
maintainer
)
}
\arguments{
\item{package}{Name of the new package.}
\item{path}{Where to create the package directory.}
\item{title}{A single sentence with the title of the package.}
\item{description}{A single paragraph describing the package.}
\item{keywords}{A vector of keywords.}
\item{language}{Language of the project in \code{xx-YY} format.
\code{xx} is the two letter code for the language.
\code{YY} is the two letter code for the language variant.
E.g. \code{en-GB} for British English, \code{en-US} for American English, \code{nl-BE} for
Belgian Dutch.}
\item{license}{What type of license should be used?
Choice between GPL-3 and MIT.
Default GPL-3.}
\item{communities}{An optional vector of Zenodo community id's.}
\item{maintainer}{When missing, the function interactively lets you add the
maintainer and other authors.
Otherwise it must be the output of \code{\link[utils:person]{utils::person()}}.}
}
\description{
Creates a package template in a new folder.
Use this function when you want to start a new package.
Please DO READ \code{vignette("getting_started")} before running this function.
}
\details{
What you get with a checklist setup:
\itemize{
\item minimal folder structure and files required for an R package using INBO
guidelines with GPL-3 or MIT license.
\item an RStudio project file
\item a local git repository
\item an initial \code{NEWS.md} file
\item a template for an \code{README.Rmd}
\item set-up for automated checks and releases of the package using GitHub
Actions.
\item a code of conduct and contributing guidelines.
\item the set-up for a \code{pkgdown} website using the INBO corporate identity.
}
}
\examples{
# maintainer in `utils::person()` format
maintainer <- person(
given = "Thierry",
family = "Onkelinx",
role = c("aut", "cre"),
email = "[email protected]",
comment = c(ORCID = "0000-0001-8804-4216")
)
# creating the package
path <- tempfile()
dir.create(path)
create_package(
path = path, package = "packagename", title = "package title",
description = "A short description.", maintainer = maintainer,
language = "en-GB", license = "GPL-3", keywords = "keyword"
)
}
\seealso{
Other setup:
\code{\link{create_project}()},
\code{\link{prepare_ghpages}()},
\code{\link{set_license}()},
\code{\link{setup_package}()},
\code{\link{setup_project}()},
\code{\link{setup_source}()}
}
\concept{setup}