Skip to content

Commit

Permalink
Added single thread mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
muschellij2 committed Aug 13, 2018
1 parent 3c742d6 commit 4612792
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion R/matlab_script.R
Expand Up @@ -162,11 +162,16 @@ run_matlab_script = function(
#' @return Exit status of matlab code
#' @examples
#' if (have_matlab()){
#' run_matlab_code(c("disp('The version of the matlab is:')", "disp(version)"),
#' paths_to_add = "~/")
#' }
#' \dontrun{
#' if (have_matlab()){
#' run_matlab_code("disp(version)")
#' run_matlab_code("disp(version)", paths_to_add = "~/")
#' run_matlab_code(c("disp('The version of the matlab is:')", "disp(version)"))
#' run_matlab_code(c("x = 5", "disp(['The value of x is ', num2str(x)])"))
#' }
#' }
run_matlab_code = function(
code, endlines = TRUE, verbose = TRUE,
add_clear_all = FALSE,
Expand Down
7 changes: 6 additions & 1 deletion man/run_matlab_code.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4612792

Please sign in to comment.