Skip to content

Commit

Permalink
adding package help page
Browse files Browse the repository at this point in the history
  • Loading branch information
Detlef Groth committed Sep 6, 2023
1 parent 8d65781 commit 16efb06
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ check: build

man/%.Rd: R/%.R
Rscript bin/rman.R $<

install: check
R CMD INSTALL $(PKG)_$(VERSION).tar.gz
25 changes: 24 additions & 1 deletion R/add.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,30 @@
## > source('bin/rman.R')
## > extractRd(list.files("R",pattern="*.R$",full.names=TRUE))

## Function documentation, protect percent signs % with backslashes \%
## package-documentation
#' \name{Rpkg-package}
#' \alias{Rpkg-package}
#' \title{Rpkg package - package template for R packages}
#' \description{The Rpkg package can be used as a template to create new packages from scratch.}
#' \details{Some more details:
#' The following list of objects and/or functions are available:
#' \describe{
#' \item{\link[Rpkg:add]{add(x,y)}}{an illustrative add function}
#' }
#' }
#' \examples{
#' library(Rpkg)
#' add(1,2)
#' }
#' \author{Detlef Groth <dgroth@uni-potsdam.de>}
#' \references{
#' \itemize{
#' \item XYZ
#' }
#' }
""

## Functions documentation, protect percent signs % with backslashes \%

#' \name{add}
#' \alias{add}
Expand Down
20 changes: 20 additions & 0 deletions man/Rpkg-package.Rd
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
\name{Rpkg-package}
\alias{Rpkg-package}
\title{Rpkg package - package template for R packages}
\description{The Rpkg package can be used as a template to create new packages from scratch.}
\details{Some more details:
The following list of objects and/or functions is available:
\describe{
\item{\link[Rpkg:add]{add(x,y)}}{an illustrative add function}
}
}
\examples{
library(Rpkg)
add(1,2)
}
\author{Detlef Groth <dgroth@uni-potsdam.de>}
\references{
\itemize{
\item XYZ
}
}

0 comments on commit 16efb06

Please sign in to comment.