Last active
December 15, 2015 06:49
-
-
Save sebastian-c/5219249 to your computer and use it in GitHub Desktop.
Test package. Place myfunc.R in the R folder and roxygenise then build.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Package: pkg | |
Version: 0.5-1 | |
Date: 2004-01-01 | |
Title: My First Collection of Functions | |
Authors@R: c(person("Joe", "Developer", role = c("aut", "cre"), | |
email = "Joe.Developer@some.domain.net"), | |
person("Pat", "Developer", role = "aut"), | |
person("A.", "User", role = "ctb", | |
email = "A.User@whereever.net")) | |
Author: Joe Developer and Pat Developer, with contributions from A. User | |
Maintainer: Joe Developer <Joe.Developer@some.domain.net> | |
Imports: pls | |
Description: A short (one paragraph) description of what | |
the package does and why it may be useful. | |
License: GPL (>= 2) | |
URL: http://www.r-project.org, http://www.another.url | |
BugReports: http://pkgname.bugtracker.url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' Test function | |
#' | |
#' @importFrom pls predict | |
#' | |
#' @export | |
myfunc <- function(x){ | |
stopifnot(class(x) == "mvr") | |
predict(x)*2 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Version: 1.0 | |
RestoreWorkspace: Default | |
SaveWorkspace: Default | |
AlwaysSaveHistory: Default | |
EnableCodeIndexing: Yes | |
UseSpacesForTab: Yes | |
NumSpacesForTab: 2 | |
Encoding: UTF-8 | |
RnwWeave: knitr | |
LaTeX: pdfLaTeX | |
BuildType: Package | |
PackageInstallArgs: --no-multiarch | |
PackageRoxygenize: rd,collate,namespace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment