/sdlr

an R package that offers R interface to video API and sound API of SDL2 library.

Primary LanguageC++GNU General Public License v3.0GPL-3.0

sdlr

Build Status CRAN Version License: GPL v3 codecov

About

sdlr is an R package that offers R interface to video API and sound API of SDL2 library.

Installation

You can install sdlr from GitHub.

Run the following R code to install sdlr.

# install from GitHub
devtools::install_github("ShotaOchi/sdlr")

Examples

Audio

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()

Image

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")

Video

not implemented yet...

Contribution

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.