From 8520d4b54a84a8d989ad1b5b29c79024c1c162aa Mon Sep 17 00:00:00 2001 From: jenniferrobledo Date: Wed, 4 Mar 2026 12:24:32 -0500 Subject: [PATCH 1/2] Add author and multiply() function --- DESCRIPTION | 7 +++++++ R/multiply.R | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 R/multiply.R diff --git a/DESCRIPTION b/DESCRIPTION index a5e6300..d8fb331 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,13 +2,20 @@ Package: my.package Title: This is my first R package Version: 0.0.0.9000 Authors@R: +c( person(given = "Evan", family = "Johnson", role = c("aut", "cre"), email = "wevanjohnson@gmail.com", comment = c(ORCID = "YOUR-ORCID-ID")) + Person (given = "Jennifer", + family = Robledo/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 + + 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} From 011ef466789e36165506bc059bf8bafd8b0bb337 Mon Sep 17 00:00:00 2001 From: jenniferrobledo Date: Wed, 4 Mar 2026 12:38:11 -0500 Subject: [PATCH 2/2] Add author and multiply() function --- DESCRIPTION | 24 ++++++++++-------------- NAMESPACE | 1 + man/multiply.Rd | 27 +++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 14 deletions(-) create mode 100644 man/multiply.Rd diff --git a/DESCRIPTION b/DESCRIPTION index d8fb331..280aef5 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,21 +1,17 @@ Package: my.package Title: This is my first R package Version: 0.0.0.9000 -Authors@R: -c( - person(given = "Evan", - family = "Johnson", - role = c("aut", "cre"), - email = "wevanjohnson@gmail.com", - comment = c(ORCID = "YOUR-ORCID-ID")) - Person (given = "Jennifer", - family = Robledo/Soldatich, - role = c("aut")) -) +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/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) + +}