diff --git a/DESCRIPTION b/DESCRIPTION index a5e6300..280aef5 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,14 +1,17 @@ Package: my.package Title: This is my first R package Version: 0.0.0.9000 -Authors@R: - person(given = "Evan", - family = "Johnson", - role = c("aut", "cre"), - email = "wevanjohnson@gmail.com", - comment = c(ORCID = "YOUR-ORCID-ID")) +Authors@R: c( + person(given = "Evan", + family = "Johnson", + role = c("aut", "cre"), + email = "wevanjohnson@gmail.com"), + person(given = "Jennifer", + family = "Soldatich", + role = c("aut")) + ) Description: This is my new package to do addition, subtraction, and multiplication License: Artistic 2.0 Encoding: UTF-8 LazyData: true -RoxygenNote: 7.0.0 +RoxygenNote: 7.3.3 diff --git a/NAMESPACE b/NAMESPACE index dca7ea5..a80937f 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -1,4 +1,5 @@ # Generated by roxygen2: do not edit by hand export(add) +export(multiply) export(subtract) diff --git a/R/multiply.R b/R/multiply.R new file mode 100644 index 0000000..acd71c2 --- /dev/null +++ b/R/multiply.R @@ -0,0 +1,16 @@ +#' This is my multiply function +#' +#' @param x this is the first value to multiply +#' @param y this is the second value to multiply +#' +#' @return This function returns the product of x and y +#' +#' @examples +#' ## Start with something simple +#' multiply(1, 1) +#' +#' ## Now something more difficult +#' multiply(49, 60) +#' +#' @export +multiply <- function(x, y){x * y} diff --git a/man/multiply.Rd b/man/multiply.Rd new file mode 100644 index 0000000..97ee777 --- /dev/null +++ b/man/multiply.Rd @@ -0,0 +1,27 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/multiply.R +\name{multiply} +\alias{multiply} +\title{This is my multiply function} +\usage{ +multiply(x, y) +} +\arguments{ +\item{x}{this is the first value to multiply} + +\item{y}{this is the second value to multiply} +} +\value{ +This function returns the product of x and y +} +\description{ +This is my multiply function +} +\examples{ +## Start with something simple +multiply(1, 1) + +## Now something more difficult +multiply(49, 60) + +}