"surf" to a GIFTI surface fileWrite the data for the left or right surface to a surface GIFTI file.
write_surf_gifti(
  x,
  gifti_fname,
  hemisphere = c("left", "right"),
  encoding = NULL,
  endian = c("LittleEndian", "BigEndian")
)write_surf(
  x,
  gifti_fname,
  hemisphere = c("left", "right"),
  encoding = NULL,
  endian = c("LittleEndian", "BigEndian")
)
Whether the GIFTI was successfully written
A "surf" object, an object from gifti::readgii, or a
list with elements "pointset" and "triangle".
Where to write the GIFTI file.
"left" (default) or "right". Ignored if data is already
a "gifti" object, or if it is a "surf" object with the hemisphere metadata
already specified.
A length-2 vector with elements chosen among "ASCII",
"Base64Binary", and "GZipBase64Binary". If NULL (default), will use
the metadata if data is a "gifti" object, or "GZipBase64Binary" for the
"pointset" and "ASCII" for the "triangles" if data is not already
a GIFTI.
"LittleEndian" (default) or "BigEndian".
Other writing: 
separate_cifti(),
write_cifti(),
write_metric_gifti(),
write_subcort_nifti(),
write_xifti2()
Other surface-related: 
add_surf(),
boundary_mask_surf(),
edit_mask_surf(),
even_vert_samp(),
is.surf(),
load_surf(),
mask_surf(),
read_surf(),
resample_surf(),
rotate_surf(),
surf_area(),
view_surf()