Skip to content

Commit d134c54

Browse files
authored
Merge pull request #51 from rstudio/startup-args-documentation
2 parents f633dfa + e1a7812 commit d134c54

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

R/chrome.R

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
Chrome <- R6Class("Chrome",
55
inherit = Browser,
66
public = list(
7+
#' @description Create a new Chrome object.
8+
#' @param path Location of chrome installation
9+
#' @param args A character vector of command-line arguments passed when
10+
#' initializing Chromium. Single on-off arguments are passed as single
11+
#' values (e.g.`"--disable-gpu"`), arguments with a value are given with a
12+
#' nested character vector (e.g. `c("--force-color-profile", "srgb")`).
13+
#' See
14+
#' [here](https://peter.sh/experiments/chromium-command-line-switches/)
15+
#' for a list of possible arguments.
16+
#' @return A new `Chrome` object.
717
initialize = function(path = find_chrome(), args = character(0)) {
818
if (is.null(path)) {
919
stop("Invalid path to Chrome")

man/Chrome.Rd

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/ChromoteSession.Rd

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)