From 5b01cae03617d8db919c9c041583d2b9cae9cb24 Mon Sep 17 00:00:00 2001 From: Fernando Mayer <fernandomayer@gmail.com> Date: Wed, 26 Aug 2015 14:57:40 -0300 Subject: [PATCH] include functions for running examples --- buildPkg.R | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/buildPkg.R b/buildPkg.R index 873d1bd..0ec73c8 100644 --- a/buildPkg.R +++ b/buildPkg.R @@ -11,6 +11,9 @@ if(!grepl(x=getwd(), pattern="/legTools$")){ ## Packages library(devtools) +## Load the package (to make functiona available) +load_all() + ## Create/update NAMESPACE, *.Rd files. document() @@ -23,8 +26,11 @@ check_doc() check(cleanup = FALSE, manual = TRUE, vignettes = FALSE, check_dir = "../") -## Load the package. -load_all() +## Examples +# Run examples from all functions of the package +# run_examples() +# Run examples from a specific function +# dev_example("loessGui") ## Show all exported objects. ls("package:legTools") -- GitLab