Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

**Document functions using as minimum David's roxygen2 template** #52

Open
nmprista opened this issue Sep 17, 2020 · 1 comment
Open
Assignees
Labels
EST2 subGroup1 Issue/Task of subGroup 1 of WKRDB-EST2 EST2 subGroup2 Issue/Task of subGroup2 of WKRDB-EST2 EST2 subGroup3 Issue/Task of subGroup3 of WKRDB-EST2 EST2 subGroup4 Issue/Task of subGroup4 of WKRDB-EST2 EST2 subGroup5 Issue/Task of subGroup5 of WKRDB-EST2 EST2 subGroup6 Issue/Task of subGroup6 of WKRDB-EST2 EST2 subGroup7 Issue/Task of subGroup7 of WKRDB-EST2

Comments

@nmprista
Copy link
Collaborator

#' Minimum Documentation Example
#'
#' See the file "./tests/testthat/test-exampleFunction.R"
#' for defining expected input and output
#'
#' @param stringX first string
#' @param stringY second string
#'
#' @return The stringX and stringY pasted together
#'
#' @examples
#' exampleFunction("A", "B")
exampleFunction <- function(stringX, stringY) {
returnString <- paste(stringX, stringY)
returnString
}

@nmprista nmprista changed the title **Document functions using as minimum Davids R-oxygen template** **Document functions using as minimum David's roxygen2 template** Sep 17, 2020
@nmprista nmprista added EST2 subGroup1 Issue/Task of subGroup 1 of WKRDB-EST2 EST2 subGroup2 Issue/Task of subGroup2 of WKRDB-EST2 EST2 subGroup3 Issue/Task of subGroup3 of WKRDB-EST2 EST2 subGroup4 Issue/Task of subGroup4 of WKRDB-EST2 EST2 subGroup5 Issue/Task of subGroup5 of WKRDB-EST2 EST2 subGroup6 Issue/Task of subGroup6 of WKRDB-EST2 EST2 subGroup7 Issue/Task of subGroup7 of WKRDB-EST2 labels Sep 17, 2020
@nmprista
Copy link
Collaborator Author

there’s more information available at https://cran.r-project.org/web/packages/roxygen2/vignettes/roxygen2.html

There’s an example of using roxygen2 in RStudio at https://combine-australia.github.io/r-pkg-dev/documenting-functions.html

@SvenSto SvenSto self-assigned this Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EST2 subGroup1 Issue/Task of subGroup 1 of WKRDB-EST2 EST2 subGroup2 Issue/Task of subGroup2 of WKRDB-EST2 EST2 subGroup3 Issue/Task of subGroup3 of WKRDB-EST2 EST2 subGroup4 Issue/Task of subGroup4 of WKRDB-EST2 EST2 subGroup5 Issue/Task of subGroup5 of WKRDB-EST2 EST2 subGroup6 Issue/Task of subGroup6 of WKRDB-EST2 EST2 subGroup7 Issue/Task of subGroup7 of WKRDB-EST2
Projects
None yet
Development

No branches or pull requests

2 participants