Skip to content

A bare bones #rstats test harness for Chrome/Chromium

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

MilesMcBain/chradle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lifecycle

chradle

A simple test harness for Chromium/Chrome, drive-able from R using a websocket connection. It started out as an R6 class but all the asyc/promise craziness got to be too hard in that context, so now it's just a library of functions.

Installation

devtools::install_github("milesmcbain/chradle")

Example

library(chradle)
library(magrittr)

test_session <-
  chr_init(url = "http://localhost:8080",
           debug_port = 9222,
           bin = "chromium-browser",
           block_on_message_pattern = "r2vr-message-router",
           incomming_debug = TRUE)

session_state <-
  chr_call(test_session, get_attributes(id = "block",
                                        attribute = "material"))
session_state
chr_kill(test_session)
chr_clean()

About

A bare bones #rstats test harness for Chrome/Chromium

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages