This function call mris_convert, a
general conversion program for converting between cortical surface file formats
mris_convert(
infile,
outfile = NULL,
ext = ".asc",
opts = "",
verbose = TRUE,
...
)(character) file path for input file
(character) output file path
(character) output file extension, default is set to .asc
(character) additional options to add to front of command
(logical) print diagnostic messages
Additional arguments to pass to system
Name of output file
if (have_fs()) {
bert_surf_dir = file.path(fs_subj_dir(), "bert", "surf")
asc_file = mris_convert(
infile = file.path(bert_surf_dir, "lh.white")
)
}