From c63fe5eabf3f244417c6d99f5dd0600b60ae511e Mon Sep 17 00:00:00 2001 From: Javier Luraschi Date: Tue, 20 Mar 2018 14:27:50 -0700 Subject: [PATCH] export project creation file and rebuild docs --- NAMESPACE | 1 + R/project.R | 6 ++++++ man/projectTemplate.Rd | 16 ++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 man/projectTemplate.Rd diff --git a/NAMESPACE b/NAMESPACE index c37ce80f..4109486d 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -10,6 +10,7 @@ export(getDependency) export(onRender) export(onStaticRenderComplete) export(prependContent) +export(projectTemplate) export(saveWidget) export(scaffoldWidget) export(setWidgetIdSeed) diff --git a/R/project.R b/R/project.R index 6a6d39b3..f362d916 100644 --- a/R/project.R +++ b/R/project.R @@ -1,3 +1,9 @@ +#' Creates an RStudio Project Template +#' +#' @param path Destination path where this project will be created. +#' @param ... Additional parameters, currently not used. +#' +#' @export projectTemplate <- function(path, ...) { project_name <- tolower(basename(path)) diff --git a/man/projectTemplate.Rd b/man/projectTemplate.Rd new file mode 100644 index 00000000..a9a92bca --- /dev/null +++ b/man/projectTemplate.Rd @@ -0,0 +1,16 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/project.R +\name{projectTemplate} +\alias{projectTemplate} +\title{Creates an RStudio Project Template} +\usage{ +projectTemplate(path, ...) +} +\arguments{ +\item{path}{Destination path where this project will be created.} + +\item{...}{Additional parameters, currently not used.} +} +\description{ +Creates an RStudio Project Template +}