Skip to content

Add {default,set,get}_chrome_args() - #57

Merged
schloerke merged 16 commits into
masterfrom
gha
Jul 15, 2021
Merged

schloerke merged 16 commits into
masterfrom
gha

Conversation

@schloerke

@schloerke schloerke commented Jul 15, 2021 •

Copy link
Copy Markdown
Collaborator

Approach:

  • Follow design pattern of set_default_chrome()
  • Use -1 as the sentinel value as NULL is a valid value
  • Default values should change according to the system that they're on. Ex: Only add --disable-dev-shm on CI or when inside Docker.

Other updates:

  • Bump testing distro to Ubuntu Focal (20)
  • Add testthat ed 3 test
  • Initialize all chrome instances using default args parameter.

Questions:

  • Should we add all default values every time?
    • A: For now, no
  • Should we listen to system environment variables or options() to set the default value? (If options(), should the default chrome value also listen to options()?)
    • A: In the future, maybe. For now, no.

I believe this PR covers #52

@schloerke
schloerke requested review from nstrayer and wch July 15, 2021 15:04
Comment thread R/chromote.R Resolved
Comment thread R/chromote.R Resolved
Comment thread R/chromote.R Resolved
Comment thread R/chromote.R Resolved
* Remove `'--hide-scrollbars'` option
* Use `--no-sandbox` in docker too
* Remove sentinel value for default chrome args
* Simplify logic as `length(NULL)` == 0
* Add example
@schloerke schloerke changed the title Add default_chromote_args() and set_default_chromote_args() Add {default,set,get}_chrome_args() Jul 15, 2021
@schloerke
schloerke merged commit 0a427c0 into master Jul 15, 2021
@schloerke
schloerke deleted the gha branch July 15, 2021 20:32
schloerke added a commit that referenced this pull request Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants