sinkrtools provide a simple interface to the sinkr package.
# install.packages(devtools) # if not installed already
library(devtools)
devtools::install_github("BigelowLab/rscripting")
devtools::install_github("BigelowLab/sinkrtools")
Rscript --vanilla /path/to/dineof_matlab.Rscript --inputfile foo.mat --inputvar allChl --maskfile mask.mat --maskvar nans ...
Usage:
dineof_matlab [--inputfile character] [--inputvar character] [--maskfile
character] [--maskvar character] [--n_cores character] [--step character]
[--output character]
Argument details follow
--inputfile character
input matlab filename
default:
--inputvar character
name of the item in the input matlab file
default: first
--maskfile character
input matlab mask filename
default:
--maskvar character
name of the item in the input matlab mask file
default: nans
--n_cores numeric
the number of cores for parallel processing, default = 1
default: 1
--step numeric
if n_cores > 1 then divide into steps this big
default: 360
--output character
filename for output matlab file
default: dineof.mat