Skip to content

Instantly share code, notes, and snippets.

@yonicd
Created December 22, 2020 01:48
Show Gist options
  • Save yonicd/024baffb3117d8270b95232f49b334f8 to your computer and use it in GitHub Desktop.
Save yonicd/024baffb3117d8270b95232f49b334f8 to your computer and use it in GitHub Desktop.
compare reactivity in web drivers
# remotes::install_github(c('yonicd/reactor@73c6285','yonicd/puzzlemath@17def58'))
library(reactor)
library(puzzlemath)
obj1 <- init_reactor()%>%
set_golem_args(package_name = 'puzzlemath')%>%
set_chrome_driver(
chromever = chrome_version()
)%>%
start_reactor()
# Adding golem Settings
# Adding chrome Settings
#
# Attempting to connect to app...
# Connected to app in 9.5 seconds
obj1%>%
read_reactor()
# tag where path when count
# 1 plot mod_plot.R#31 /Users/yonis/projects/puzzlemath/R 2020-12-21 20:41:08 1
# 2 draw app_server.R#35 /Users/yonis/projects/puzzlemath/R 2020-12-21 20:41:09 1
obj1%>%
kill_app()
obj2 <- init_reactor()%>%
set_golem_args(package_name = 'puzzlemath')%>%
set_firefox_driver(
geckover = gecko_version()
)%>%
start_reactor()
# Adding golem Settings
# Adding firefox Settings
#
# Attempting to connect to app....
# Connected to app in 19.5 seconds
obj2%>%
read_reactor()
# tag where path when count
# 1 plot mod_plot.R#31 /Users/yonis/projects/puzzlemath/R 2020-12-21 20:41:30 1
# 2 draw app_server.R#35 /Users/yonis/projects/puzzlemath/R 2020-12-21 20:41:30 1
# 3 draw app_server.R#35 /Users/yonis/projects/puzzlemath/R 2020-12-21 20:41:31 2
obj2%>%
kill_app()
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#> setting value
#> version R version 3.6.3 (2020-02-29)
#> os macOS Catalina 10.15.7
#> system x86_64, darwin15.6.0
#> ui X11
#> language (EN)
#> collate en_US.UTF-8
#> ctype en_US.UTF-8
#> tz America/New_York
#> date 2020-12-21
#>
#> ─ Packages ───────────────────────────────────────────────────────────────────
#> package * version date lib source
#> askpass 1.1 2019-01-13 [1] CRAN (R 3.6.0)
#> assertthat 0.2.1 2019-03-21 [1] CRAN (R 3.6.0)
#> attempt 0.3.1 2020-05-03 [1] CRAN (R 3.6.2)
#> binman 0.1.1 2018-07-18 [1] CRAN (R 3.6.0)
#> bitops 1.0-6 2013-08-17 [1] CRAN (R 3.6.0)
#> caTools 1.18.0 2020-01-17 [1] CRAN (R 3.6.0)
#> cli 2.2.0 2020-11-20 [1] CRAN (R 3.6.2)
#> codetools 0.2-16 2018-12-24 [1] CRAN (R 3.6.3)
#> colorspace 1.4-1 2019-03-18 [1] CRAN (R 3.6.0)
#> config 0.3 2018-03-27 [1] CRAN (R 3.6.0)
#> crayon 1.3.4 2017-09-16 [1] CRAN (R 3.6.0)
#> deldir 0.2-3 2020-11-09 [1] CRAN (R 3.6.2)
#> desc 1.2.0.9000 2020-09-28 [1] Github (r-lib/desc@c175259)
#> digest 0.6.27 2020-10-24 [1] CRAN (R 3.6.2)
#> dockerfiler 0.1.3 2019-03-19 [1] CRAN (R 3.6.0)
#> dplyr 1.0.2 2020-08-18 [1] CRAN (R 3.6.2)
#> ellipsis 0.3.1 2020-05-15 [1] CRAN (R 3.6.2)
#> evaluate 0.14 2019-05-28 [1] CRAN (R 3.6.0)
#> fansi 0.4.1 2020-01-08 [1] CRAN (R 3.6.0)
#> fastmap 1.0.1 2019-10-08 [1] CRAN (R 3.6.0)
#> fs 1.5.0 2020-07-31 [1] CRAN (R 3.6.2)
#> generics 0.0.2 2018-11-29 [1] CRAN (R 3.6.0)
#> ggplot2 3.3.2 2020-06-19 [1] CRAN (R 3.6.2)
#> ggvoronoi 0.8.3 2019-02-19 [1] CRAN (R 3.6.0)
#> glue 1.4.2 2020-08-27 [1] CRAN (R 3.6.2)
#> golem 0.3.0 2020-12-06 [1] local
#> gtable 0.3.0 2019-03-25 [1] CRAN (R 3.6.0)
#> highr 0.8 2019-03-20 [1] CRAN (R 3.6.0)
#> htmltools 0.5.0 2020-06-16 [1] CRAN (R 3.6.2)
#> httpuv 1.5.4 2020-06-06 [1] CRAN (R 3.6.2)
#> jsonlite 1.7.2 2020-12-09 [1] CRAN (R 3.6.2)
#> knitr 1.30 2020-09-22 [1] CRAN (R 3.6.2)
#> later 1.1.0.9000 2020-12-12 [1] Github (r-lib/later@ff8c451)
#> lattice 0.20-38 2018-11-04 [1] CRAN (R 3.6.3)
#> lifecycle 0.2.0 2020-03-06 [1] CRAN (R 3.6.0)
#> magick 2.2 2019-08-26 [1] CRAN (R 3.6.0)
#> magrittr 2.0.1 2020-11-17 [1] CRAN (R 3.6.2)
#> mime 0.9 2020-02-04 [1] CRAN (R 3.6.0)
#> munsell 0.5.0 2018-06-12 [1] CRAN (R 3.6.0)
#> openssl 1.4.3 2020-09-18 [1] CRAN (R 3.6.2)
#> pagedown 0.9 2020-03-18 [1] CRAN (R 3.6.0)
#> pillar 1.4.7 2020-11-20 [1] CRAN (R 3.6.2)
#> pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 3.6.0)
#> pkgload 1.1.0 2020-05-29 [1] CRAN (R 3.6.2)
#> processx 3.4.5 2020-11-30 [1] CRAN (R 3.6.2)
#> promises 1.1.1.9001 2020-11-25 [1] Github (rstudio/promises@bbadb3d)
#> ps 1.5.0 2020-12-05 [1] CRAN (R 3.6.2)
#> purrr 0.3.4 2020-04-17 [1] CRAN (R 3.6.2)
#> puzzlemath * 0.0.3 2020-12-08 [1] local
#> R6 2.5.0 2020-10-28 [1] CRAN (R 3.6.2)
#> raster 3.4-5 2020-11-14 [1] CRAN (R 3.6.2)
#> Rcpp 1.0.5 2020-07-06 [1] CRAN (R 3.6.2)
#> reactor * 0.2.1 2020-12-22 [1] local
#> remotes 2.2.0 2020-07-21 [1] CRAN (R 3.6.2)
#> rgeos 0.5-3 2020-05-08 [1] CRAN (R 3.6.2)
#> rlang 0.4.9 2020-11-26 [1] CRAN (R 3.6.2)
#> rmarkdown 2.5 2020-10-21 [1] CRAN (R 3.6.3)
#> roxygen2 7.1.1 2020-06-27 [1] CRAN (R 3.6.2)
#> rprojroot 2.0.2 2020-11-25 [1] Github (r-lib/rprojroot@5bafca9)
#> RSelenium 1.7.7 2020-02-03 [1] CRAN (R 3.6.1)
#> rstudioapi 0.13 2020-11-12 [1] CRAN (R 3.6.2)
#> scales 1.1.0 2019-11-18 [1] CRAN (R 3.6.0)
#> semver 0.2.0 2017-01-06 [1] CRAN (R 3.6.0)
#> sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 3.6.0)
#> shiny 1.5.0 2020-06-23 [1] CRAN (R 3.6.2)
#> shinyjs 1.0 2018-01-08 [1] CRAN (R 3.6.0)
#> shinyWidgets 0.5.0 2019-11-18 [1] CRAN (R 3.6.0)
#> sp 1.4-4 2020-10-07 [1] CRAN (R 3.6.2)
#> stringi 1.5.3 2020-09-09 [1] CRAN (R 3.6.2)
#> stringr 1.4.0 2019-02-10 [1] CRAN (R 3.6.0)
#> testthat 3.0.0 2020-10-31 [1] CRAN (R 3.6.2)
#> tibble 3.0.4 2020-10-12 [1] CRAN (R 3.6.2)
#> tidyselect 1.1.0 2020-05-11 [1] CRAN (R 3.6.2)
#> usethis 1.9.0.9000 2020-11-25 [1] Github (r-lib/usethis@2a7ee3b)
#> vctrs 0.3.5 2020-11-17 [1] CRAN (R 3.6.2)
#> wdman 0.2.5 2020-01-31 [1] CRAN (R 3.6.0)
#> whereami 0.1.9 2020-09-24 [1] local
#> withr 2.3.0 2020-09-22 [1] CRAN (R 3.6.2)
#> xfun 0.19 2020-10-30 [1] CRAN (R 3.6.2)
#> XML 3.98-1.20 2019-06-06 [1] CRAN (R 3.6.0)
#> xml2 1.3.2 2020-04-23 [1] CRAN (R 3.6.2)
#> xtable 1.8-4 2019-04-21 [1] CRAN (R 3.6.0)
#> yaml 2.2.1 2020-02-01 [1] CRAN (R 3.6.0)
#>
#> [1] /Library/Frameworks/R.framework/Versions/3.6/Resources/library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment