Skip to content

Commit

Permalink
Fix traits() documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiromagno committed Dec 15, 2023
1 parent c9d05d3 commit 88a4fca
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 18 deletions.
2 changes: 0 additions & 2 deletions CRAN-RELEASE

This file was deleted.

1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# gwasrapidd 0.99.17

- Fixed issue [#45](https://github.com/ramiromagno/gwasrapidd/issues/45)
- Fixed documentation of `traits()`

# gwasrapidd 0.99.16

Expand Down
24 changes: 16 additions & 8 deletions R/class-traits.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@ setClass(
#'
#' Constructor for the S4 \linkS4class{traits} object.
#'
#' @param efo_id A \code{character} vector of
#' \href{https://www.ebi.ac.uk/efo/}{EFO} identifiers.
#' @param trait A \code{character} vector of
#' \href{https://www.ebi.ac.uk/efo/}{EFO} trait descriptions.
#' @param uri A \code{character} vector of
#' \href{https://www.ebi.ac.uk/efo/}{EFO} URIs.
#' @param traits A \code{\link{traits_tbl}} tibble.
#'
#' @return An object of class \linkS4class{traits}.
#' @keywords internal
Expand All @@ -39,10 +34,23 @@ traits <- function(traits = traits_tbl()) {
traits_drop_na(s4_traits)
}

#' Creates a traits tibble
#'
#' Creates a traits tibble.
#'
#' @param efo_id A \code{character} vector of
#' \href{https://www.ebi.ac.uk/efo/}{EFO} identifiers.
#' @param trait A \code{character} vector of
#' \href{https://www.ebi.ac.uk/efo/}{EFO} trait descriptions.
#' @param uri A \code{character} vector of
#' \href{https://www.ebi.ac.uk/efo/}{EFO} URIs.
#'
#' @return A \code{\link[tibble]{tibble}} whose columns are the named arguments
#' to the function.
#' @keywords internal
traits_tbl <- function(efo_id = character(),
trait = character(),
uri = character()) {
trait = character(),
uri = character()) {
tbl <- tibble::tibble(efo_id = efo_id,
trait = trait,
uri = uri)
Expand Down
9 changes: 1 addition & 8 deletions man/traits.Rd

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

26 changes: 26 additions & 0 deletions man/traits_tbl.Rd

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

0 comments on commit 88a4fca

Please sign in to comment.