knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
Readmat requires a full license and installation of Matlab^(R)^ if you don't have this then the R.matlab
[@R.matlab] package is much more suitable. The only goal of this package is to provide a potentially faster approach, especially when dealing with large matrices.
This package is definitely under development!
A data cube of 400 x 400 x 400 values.
readmat::read_mat(readmat::get_matlab("double-large-cube.mat"))[[1]] |> dim()
Comparing R.matlab
and readmat
.
# powered by bench::mark() knitr::kable(readmat:::bm, digits=2)
You can install the development version of readmat from GitHub with:
# install.packages("devtools") devtools::install_github("MartinSchobben/readmat")
# following code for loading and writing the bibtex references for the used pkgs pkgs <- c("R.matlab", "cpp11", "devtools") # Get the R reference rref <- citation() # Create ref key rref$key <- "rversion" # write bib knitr::write_bib(pkgs, "man/packages.bib", prefix = "") pkgs <- bibtex::read.bib("man/packages.bib") bibtex::write.bib( purrr::reduce(list(rref, pkgs), append), file = "man/packages.bib" )
The construction of the R [@rversion] package readmat
and associated documentation was aided by the packages; devtools
[@devtools] and cpp11
[@cpp11].
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.