-
Notifications
You must be signed in to change notification settings - Fork 131
/
Copy pathrstudio_deploy.Rd
69 lines (61 loc) · 1.72 KB
/
rstudio_deploy.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_rstudio_files.R
\name{add_positconnect_file}
\alias{add_positconnect_file}
\alias{add_rconnect_file}
\alias{add_rstudioconnect_file}
\alias{add_shinyappsio_file}
\alias{add_shinyserver_file}
\alias{add_rscignore_file}
\title{Add an \code{app.R} at the root of your package to deploy on RStudio Connect}
\usage{
add_positconnect_file(pkg = get_golem_wd(), open = TRUE)
add_rstudioconnect_file(pkg = get_golem_wd(), open = TRUE)
add_shinyappsio_file(pkg = get_golem_wd(), open = TRUE)
add_shinyserver_file(pkg = get_golem_wd(), open = TRUE)
add_rscignore_file(pkg = get_golem_wd(), open = TRUE)
}
\arguments{
\item{pkg}{Path to the root of the package. Default is \code{get_golem_wd()}.}
\item{open}{Should the created file be opened?}
}
\value{
Side-effect functions for file creation returning the path to the
file, invisibly.
}
\description{
Additionally, adds a \code{.rscignore} at the root of the \code{{golem}} project if the
\code{rsconnect} package version is \verb{>= 0.8.25}.
}
\note{
In previous versions, this function was called add_rconnect_file.
\code{add_rstudioconnect_file} is now deprecated; replace by \code{\link[=add_positconnect_file]{add_positconnect_file()}}.
}
\section{List of excluded files in \code{.rscignore}}{
\itemize{
\item .here
\item CODE_OF_CONDUCT.md
\item LICENSE\{.md\}
\item LICENCE\{.md\}
\item NEWS\{.md\}
\item README\{.md,.Rmd,.HTML\}
\item dev
\item man
\item tests
\item vignettes
}
}
\examples{
# Add a file for Connect
if (interactive()) {
add_positconnect_file()
}
# Add a file for Shiny Server
if (interactive()) {
add_shinyserver_file()
}
# Add a file for Shinyapps.io
if (interactive()) {
add_shinyappsio_file()
}
}