Skip to content

Commit

Permalink
average_of test function
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholascarey committed Nov 16, 2021
1 parent 1b26632 commit 4cdb281
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ Description: More about what it does (maybe more than one line)
License: file LICENSE
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.0.2
RoxygenNote: 7.1.2
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Generated by roxygen2: do not edit by hand

export(average_of)
15 changes: 15 additions & 0 deletions R/average_of.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#' Average of numbers
#'
#' @param x A vector of input numbers
#'
#' @return a mean value
#'
#' @export
#'
#' @examples
#' average_of(c(2,3))

average_of <- function(x){
output <- mean(x)
return
}
1 change: 1 addition & 0 deletions WKBIOPTIM4.Rproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ StripTrailingWhitespace: Yes
BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageRoxygenize: rd,collate,namespace
20 changes: 20 additions & 0 deletions man/average_of.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4cdb281

Please sign in to comment.