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

change default values in cb_get_participants_table #80

Merged
merged 4 commits into from
Jan 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: cloudos
Title: R Client Library for CloudOS
Version: 0.2.0.9005
Version: 0.2.0.9006
Authors@R: c(
person(given = "Sangram Keshari",
family = "Sahu",
Expand Down
8 changes: 4 additions & 4 deletions R/cb_cohort_extract.R
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ cb_get_genotypic_table <- function(cohort,
#' See constructor functions \code{\link{cb_create_cohort}} or \code{\link{cb_load_cohort}}
#' @param cols Vector of phenotype IDs to fetch as columns in the dataframe. If omitted, columns saved
#' in the cohort are fetched.
#' @param page_number Number of page (can be 'all' to fetch all data) . (Optional) Default - 0
#' @param page_size Number of entries in a page. (Optional) Default - 10
#' @param page_number Number of page as integer or 'all' to fetch all data. (Optional) Default - 'all'
#' @param page_size Number of entries in a page. (Optional) Default - 5000
#'
#' @return A dataframe.
#'
Expand All @@ -170,8 +170,8 @@ cb_get_genotypic_table <- function(cohort,
#' @export
cb_get_participants_table <- function(cohort,
cols,
page_number = 0,
page_size = 100) {
page_number = 'all',
page_size = 5000) {

if (cohort@cb_version == "v1") {
if (!missing(cols)) stop("'cols' argument is not supported for CB v1")
Expand Down
6 changes: 3 additions & 3 deletions man/cb_get_participants_table.Rd

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