From 35e0ddb168a4a3d3b5e849800f1b5170fe1ca132 Mon Sep 17 00:00:00 2001 From: ttriche Date: Wed, 28 Oct 2015 15:19:55 -0700 Subject: [PATCH] per klutometis/roxygen#415 ... --- DESCRIPTION | 10 ++++++++++ NAMESPACE | 3 +++ R/goodbye.R | 9 +++++++++ R/hello.R | 8 ++++++++ man/goodbye.Rd | 15 +++++++++++++++ man/hello.Rd | 15 +++++++++++++++ 6 files changed, 60 insertions(+) create mode 100644 DESCRIPTION create mode 100644 NAMESPACE create mode 100644 R/goodbye.R create mode 100644 R/hello.R create mode 100644 man/goodbye.Rd create mode 100644 man/hello.Rd diff --git a/DESCRIPTION b/DESCRIPTION new file mode 100644 index 0000000..e35314a --- /dev/null +++ b/DESCRIPTION @@ -0,0 +1,10 @@ +Package: roxpkg +Type: Package +Title: document roxygen2 5.0.0 weirdness +Version: 1.0 +Date: 2015-10-28 +Author: Foo Barr +Maintainer: Tim Triche +Description: run devtools::document() on me! +License: The Unlicense +RoxygenNote: 5.0.0 diff --git a/NAMESPACE b/NAMESPACE new file mode 100644 index 0000000..01843dc --- /dev/null +++ b/NAMESPACE @@ -0,0 +1,3 @@ +# Generated by roxygen2: do not edit by hand + +export(hello) diff --git a/R/goodbye.R b/R/goodbye.R new file mode 100644 index 0000000..884298f --- /dev/null +++ b/R/goodbye.R @@ -0,0 +1,9 @@ +#' Hi, I'm not exported! +#' +#' @param txt what to say +#' +#' @export +#' +goodbye <- function(txt = "world") { + cat("Goodbye, ", txt, "\n") +} diff --git a/R/hello.R b/R/hello.R new file mode 100644 index 0000000..cd2a871 --- /dev/null +++ b/R/hello.R @@ -0,0 +1,8 @@ +#' Hi, I'm exported! +#' +#' @param txt what to say +#' +#' @export +hello <- function(txt = "world") { + cat("Hello, ", txt, "\n") +} diff --git a/man/goodbye.Rd b/man/goodbye.Rd new file mode 100644 index 0000000..17e56b6 --- /dev/null +++ b/man/goodbye.Rd @@ -0,0 +1,15 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/goodbye.R +\name{goodbye} +\alias{goodbye} +\title{Hi, I'm not exported!} +\usage{ +goodbye(txt = "world") +} +\arguments{ +\item{txt}{what to say} +} +\description{ +Hi, I'm not exported! +} + diff --git a/man/hello.Rd b/man/hello.Rd new file mode 100644 index 0000000..52bde48 --- /dev/null +++ b/man/hello.Rd @@ -0,0 +1,15 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/hello.R +\name{hello} +\alias{hello} +\title{Hi, I'm exported!} +\usage{ +hello(txt = "world") +} +\arguments{ +\item{txt}{what to say} +} +\description{ +Hi, I'm exported! +} +