diff --git a/NAMESPACE b/NAMESPACE index 884a631..620cb57 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -1,2 +1,3 @@ -# Generated by roxygen2: fake comment so roxygen2 overwrites silently. -exportPattern("^[^\\.]") +# Generated by roxygen2: do not edit by hand + +export(foo) diff --git a/R/foo.R b/R/foo.R index 92c7d49..d26d81d 100644 --- a/R/foo.R +++ b/R/foo.R @@ -1 +1,5 @@ -foo <- function(x) x + 1 +#' Another way to document +#' +#' @param x hi +#' @export +foo <- function(x) {x + 1} diff --git a/man/foo.Rd b/man/foo.Rd new file mode 100644 index 0000000..67fea51 --- /dev/null +++ b/man/foo.Rd @@ -0,0 +1,14 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/foo.R +\name{foo} +\alias{foo} +\title{Another way to document} +\usage{ +foo(x) +} +\arguments{ +\item{x}{hi} +} +\description{ +Another way to document +}