Skip to content

Commit

Permalink
Add more description to value fields of exported functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jooolia committed Oct 27, 2023
1 parent 6e5fd0e commit 7b8af74
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions R/allphenotypes.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
#' can take multiple values, so the other columns id, characteristic, and
#' number_of_users are replicated in the data.frame. Default: `FALSE`
#' @param ... Curl options passed on to [crul::HttpClient]
#' @return data.frame of results, or list if `df=FALSE`
#' @return data.frame of openSNP phenotypes, variants and users per phenotype, or list if `df=FALSE`
#' @examples \dontrun{
#' # Get all data
#' allphenotypes(df = TRUE)
#'
#' # Output a list, then call the characterisitc of interest by 'id' or
#' # Output a list, then call the characteristic of interest by 'id' or
#' # 'characteristic'
#' datalist <- allphenotypes()
#' names(datalist) # get list of all characteristics you can call
Expand Down
2 changes: 1 addition & 1 deletion R/annotations.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' are: 'plos', 'mendeley', 'snpedia', 'metadata'). 'metadata' gives the
#' metadata for the response.
#' @param ... Curl options passed on to [crul::HttpClient]
#' @return data.frame of results
#' @return data.frame of openSNP phenotypes from specified source
#' @examples \dontrun{
#' # Get all data
#' ## get just the metadata
Expand Down
2 changes: 1 addition & 1 deletion R/download_users.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ get_write <- function(x, y, ...) {
#' written in the function download_users, and then searches against those
#' variables for the path to the file saved. Alternatively, you can supply
#' the path.
#' @return A data.frame.
#' @return A data.frame with openSNP user files retrieved from local storage
#' @examples \dontrun{
#' dat <- read_users(name = "kevinmcc")
#' head(dat)
Expand Down
2 changes: 1 addition & 1 deletion R/phenotypes.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#' @param userid ID of openSNP user.
#' @param df Return data.frame (`TRUE`) or not (`FALSE`). Default: `FALSE`
#' @param ... Curl options passed on to [crul::HttpClient]
#' @return List of phenotypes for specified user(s).
#' @return List of phenotypes for specified user(s) from openSNP.
#'
#' @examples \dontrun{
#' phenotypes(userid = 1)
Expand Down
2 changes: 1 addition & 1 deletion R/phenotypes_byid.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#' @param return_ Return data.frame (`TRUE`) or not (`FALSE`). Default: `FALSE`
#' @param ... Curl options passed on to [crul::HttpClient]
#' @return List of description of phenotype, list of known variants, or
#' data.frame of variants for each user with that phenotype.
#' data.frame of variants for each user with that phenotype retrieved from openSNP.
#'
#' @examples \dontrun{
#' phenotypes_byid(phenotypeid = 12, return_ = "desc")
Expand Down
2 changes: 1 addition & 1 deletion R/users.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#' @family opensnp-fxns
#' @param df Return data.frame (`TRUE`) or not (`FALSE`). Default: `FALSE`
#' @param ... Curl options passed on to [crul::HttpClient]
#' @return List of openSNP users, their ID numbers, and XX if available.
#' @return List of openSNP users, their ID numbers, and genome data if available.
#' @examples \dontrun{
#' # just the list
#' data <- users(df = FALSE)
Expand Down
4 changes: 2 additions & 2 deletions man/allphenotypes.Rd

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

2 changes: 1 addition & 1 deletion man/annotations.Rd

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

2 changes: 1 addition & 1 deletion man/phenotypes.Rd

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

2 changes: 1 addition & 1 deletion man/phenotypes_byid.Rd

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

2 changes: 1 addition & 1 deletion man/read_users.Rd

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

2 changes: 1 addition & 1 deletion man/users.Rd

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

0 comments on commit 7b8af74

Please sign in to comment.