Skip to content

Commit

Permalink
Update default chromote object for current testing
Browse files Browse the repository at this point in the history
Co-Authored-By: Romain Lesur <[email protected]>
  • Loading branch information
schloerke and RLesur committed Jul 12, 2021
1 parent f5916d7 commit 661385d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/chromote/test.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ if ("chromote" %in% avail_pkgs) {

library(chromote)

set_default_chromote_object(
Chromote$new(
Chrome$new(
args = c(
"--disable-gpu",
"--no-sandbox",
"--disable-dev-shm-usage", # required bc the target easily crashes
c("--force-color-profile", "srgb")
)
)
)
)

# Make session
b <- ChromoteSession$new()

Expand Down

2 comments on commit 661385d

@RLesur
Copy link
Contributor

@RLesur RLesur commented on 661385d Jul 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the credits! I am touched by your attention. This is extremely elegant. You are a gentleman, @schloerke!

@schloerke
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic may (probably will) move into chromote itself as places like GitHub Actions would like this logic too

Please sign in to comment.