You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here we create an asciicast which can has an RMarkdown/Shiny output object that will render when put in an Rmd. The output will
library(rsciinema)
input= paste0("library(magrittr); # a comment is a gra", backspace(), "eat thing to do",
"\niris %>% \n dplyr::group_by(Species) %>%\n",
"dplyr::summarise_all(mean) \n # a new line")
data= asciicast( input, speed=0.2)
out= asciinema(data=data, autoplay=TRUE, loop=FALSE)
tfile= tempfile()
dput(out, file=tfile)
dout= readLines(tfile)
x= c("---", "output: rsciinema::asciinema_document", "---", "",
"```{r, echo = FALSE}",
"library(rsciinema)",
dout,
"```"
)
tfile= tempfile(fileext=".Rmd")
writeLines(x, con=tfile, sep="\n")
Setting multiple files for rmdshot/webshot did not achieve the results we're looking for. Just wanted to know if any insight possible or if a better approach would be to hack the asciicast2gif JS to it's core, then use the PhantomJS install from webshot.
The text was updated successfully, but these errors were encountered:
I've been playing around with https://github.com/romainfrancois/rsciinema @romainfrancois and we've been able to get an asciicast to an GIF with the help of
asciicast2gif
, see (romainfrancois/rsciinema#11 for an example).As
asciicast2gif
relies mainly on PhatomJS (https://github.com/asciinema/asciicast2gif/blob/master/src/asciinema/gif/main.cljs#L156) (but to be fair a lot of other JS/node), I was wondering if it'd be possible to usermdshot
but have it take multiple shots over time or a range of time.Example below
Here we create an
asciicast
which can has an RMarkdown/Shiny output object that will render when put in anRmd
. The output willSetting multiple files for
rmdshot
/webshot
did not achieve the results we're looking for. Just wanted to know if any insight possible or if a better approach would be to hack theasciicast2gif
JS to it's core, then use the PhantomJS install fromwebshot
.The text was updated successfully, but these errors were encountered: