-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add 2 plots per row and then make a new row
in the newly created outer table, add 2 plots per row and then make a new row. this implementation will be built upon to complete if it is the suitable.
- Loading branch information
1 parent
e53e7d9
commit 0ae75de
Showing
2 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
sendKey <- function(key, code, keyCode) { | ||
remDr$Input$dispatchKeyEvent(type = "keyDown", key = key, code = code, windowsVirtualKeyCode = keyCode, nativeVirtualKeyCode = keyCode) | ||
remDr$Input$dispatchKeyEvent(type = "keyUp", key = key, code = code, windowsVirtualKeyCode = keyCode, nativeVirtualKeyCode = keyCode) | ||
} | ||
|
||
clickID <- function(...){ | ||
v <- c(...) | ||
stopifnot(length(v) == 1) | ||
runtime_evaluate(script=sprintf("document.getElementById('%s').dispatchEvent(new CustomEvent('click'))", as.character(v))) | ||
} | ||
|
||
runtime_evaluate <- function(script=NULL,return.value=FALSE){ | ||
eval.result<- remDr$Runtime$evaluate(script,returnByValue = TRUE) | ||
if (return.value){ | ||
eval.result$result$value | ||
}else{ | ||
eval.result | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters