sdlr is an R package that offers R interface to video API and sound API of SDL2 library.
You can install sdlr from GitHub.
Run the following R code to install sdlr.
# install from GitHub
devtools::install_github("ShotaOchi/sdlr")
You can use an R6 class SDLaudio to play audio.
library(sdlr)
path <- system.file("extdata", "train-whistle.wav", package = "sdlr")
# load wav file
a <- SDLaudio$new(path)
# play audio
a$queue()
You can display image.
view(human)
You can select points, lines, rectangles from image interactively.
pick(human)
pick(human, type = "line")
pick(human, type = "rect")
not implemented yet...
You can create issues for any bug report or suggestion on the issues page.
You're welcome to fork this repository and send me a pull request for bug fixes or additional features.