pierreroudier / opusreader

Reading OPUS binary files in R
GNU General Public License v3.0
4 stars 5 forks source link

Type-safer parser: use `vapply()` instead of `sapply()` #10

Closed philipp-baumann closed 3 years ago

philipp-baumann commented 3 years ago

opus_read_raw() e.g. l. 119 sapply() is for interactive use; use vapply() and supply FUN.VALUE with expected type; for example FUN.VALUE = character(1). Could also bring some minimal speed improvements.

pierreroudier commented 3 years ago

Fixed in https://github.com/pierreroudier/opusreader/commit/259abc839d3405def6f6715d5ca49b5f8788b808