Skip to content

Commit

Permalink
investigate travis error on R dev under Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dfsp-spirit committed Nov 27, 2019
1 parent 4891ade commit 3acc84b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/write_fs_mgh.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ write.fs.mgh <- function(filepath, data, vox2ras_matrix = NULL, mr_params = c(0.
if(length(vox2ras_matrix) == 0) {
ras_flag = 0;
} else {
cat(sprintf("The class of the 'vox2ras_matrix' argument is '%s'.", class(vox2ras_matrix)));
print(vox2ras_matrix);
if(class(vox2ras_matrix) != "matrix") {
cat(sprintf("The class of the 'vox2ras_matrix' argument is '%s'.", class(vox2ras_matrix)));
print(vox2ras_matrix);
stop("The 'vox2ras_matrix' argument must be a matrix.");
}

Expand Down

0 comments on commit 3acc84b

Please sign in to comment.