-
Notifications
You must be signed in to change notification settings - Fork 131
/
Copy pathrun_dev.Rd
41 lines (38 loc) · 1.51 KB
/
run_dev.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run_dev.R
\name{run_dev}
\alias{run_dev}
\title{Run the \code{dev/run_dev.R} file}
\usage{
run_dev(
file = "dev/run_dev.R",
pkg = get_golem_wd(),
save_all = TRUE,
install_required_packages = TRUE
)
}
\arguments{
\item{file}{String with (relative) file path to a \code{run_dev.R}-file}
\item{pkg}{Path to the root of the package. Default is \code{get_golem_wd()}.}
\item{save_all}{Boolean; if \code{TRUE} saves all open files before sourcing
\code{file}}
\item{install_required_packages}{Boolean; if \code{TRUE} install the packages
used in \code{run_dev.R}-file}
}
\value{
pure side-effect function; returns invisibly
}
\description{
The default \code{file="dev/run_dev.R"} launches your \code{{golem}} app with a bunch
of useful options. The file content can be customized and \code{file}-name and
path changed as long as the argument combination of \code{file} and \code{pkg} are
supplied correctly: the \code{file}-path is a relative path to a \code{{golem}}-package
root \code{pkg}. An error is thrown if \code{pkg/file} cannot be found.
}
\details{
The function \code{run_dev()} is typically used to launch a shiny app by sourcing
the content of an appropriate \code{run_dev}-file. Carefully read the content of
\code{dev/run_dev.R} when creating your custom \code{run_dev}-file. It has already
many useful settings including a switch between production/development,
reloading the package in a clean \code{R} environment before running the app etc.
}