R/set_matlab_path.R

Defines functions set_matlab_path

Documented in set_matlab_path

#' Set `Matlab` path
#'
#' Use this function to set `Matlab` path
#'
#' @param matlab_path Path to the Matlab executable. This overwrites `set_octave_path()` function.
#' @return Character
#'
#' @examples library(DynareR)
#' \dontrun{
#' set_matlab_path('C:/Program Files/MATLAB/R2024a/bin/matlab')
#'}
#' @family important functions
#' @keywords documentation
#' @export
set_matlab_path <- function(matlab_path="matlab"){

  matlabExecPath=Sys.which(matlab_path) # for Linux and macOS

  octaveExecPath<<-""

  matlabExecPath<<-matlabExecPath

}

Try the DynareR package in your browser

Any scripts or data that you put into this service are public.

DynareR documentation built on Oct. 27, 2024, 1:06 a.m.