Skip to content

Instantly share code, notes, and snippets.

View jefferys's full-sized avatar

Stuart R. Jefferys jefferys

  • UNC Chapel Hill
View GitHub Profile
@jefferys
jefferys / roxygen2OneFunction.gist.R
Last active September 3, 2022 22:12
R function documentation with roxygen2 - single function
#=====================================
# Demo function roxygen2 documentation
#=====================================
# This shows how things work, including weird corner cases, not how they
# should be done. Most of the information comes from
# http://r-pkgs.had.co.nz/man.html
#' Brief description/title of the page describing this function.
@jefferys
jefferys / Perl_OO_class_model.pm
Created May 15, 2013 21:36
A template for a new perl class using hash based objects and inline pod.
package Some::Class;
# See end of file for copyright info.
use strict;
use warnings;
# Comment describing how I'm using Some::Dependency.
# use Some::Dependency;