Skip to content

Instantly share code, notes, and snippets.

@muschellij2
Created May 1, 2014 14:06
Show Gist options
  • Save muschellij2/c1bdc1cd48954d86b46e to your computer and use it in GitHub Desktop.
Save muschellij2/c1bdc1cd48954d86b46e to your computer and use it in GitHub Desktop.
Example of Roxygen markdown
#' @name fslmask
#' @title Mask image using FSL
#' @param file (character) image to be masked
#' @param mask (character) mask given for image
#' @param outfile (character) resultant masked image name
#' @param retimg (logical) return image of class nifti
#' @param reorient (logical) If retimg, should file be reoriented when read in?
#' Passed to \code{\link{readNIfTI}}.
#' @param intern (logical) to be passed to \code{\link{system}}
#' @param opts (character) additional options to be passed to fslmask
#' @return Result from system command, depends if intern is TRUE or FALSE.
#' @export
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment