Skip to content

Commit

Permalink
Merge pull request #7 from e-kotov/6-bump-default-item-limits
Browse files Browse the repository at this point in the history
set limits to 2500 in all functions
  • Loading branch information
e-kotov authored Jan 30, 2025
2 parents f43c132 + d2db5a4 commit fcf7fc3
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#' @param level A `character` string specifying the NUTS level ("0", "1", "2", or "3").
#' @param x_filters A `named list` where the names are the filter fields for the x variable and the values are the selected values for those fields. Default is an empty list. To find out which filters to use, use \code{\link{mi_source_filters}} with the desired `source_name`.
#' @param y_filters (Optional) A `named list` where the names are the filter fields for the y variable and the values are the selected values for those fields. Default is `NULL`. To find out which filters to use, use \code{\link{mi_source_filters}} with the desired `source_name`.
#' @param limit An `integer` specifying the maximum number of results to return. Default is 2000.
#' @param limit An `integer` specifying the maximum number of results to return. Default is 2500.
#'
#' @return A `tibble` with the following columns:
#'
Expand Down Expand Up @@ -56,7 +56,7 @@ mi_data <- function(
level,
x_filters = list(),
y_filters = NULL,
limit = 2000
limit = 2500
) {
# Validate inputs
checkmate::assert_string(x_source)
Expand Down
2 changes: 1 addition & 1 deletion R/source-filters.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mi_source_filters <- function(
year,
level,
filters = list(),
limit = 40
limit = 2500
) {
# Validate inputs
checkmate::assert_string(source_name)
Expand Down
4 changes: 2 additions & 2 deletions R/sources.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
mi_sources <- function(
level,
year = NULL,
limit = 1000
limit = 2500
){

checkmate::assert_choice(level, c("0", "1", "2", "3"))
Expand Down Expand Up @@ -104,7 +104,7 @@ mi_sources <- function(
#' }
mi_source_coverage <- function(
source_name,
limit = 1500
limit = 2500
){
checkmate::assert_string(source_name)

Expand Down
4 changes: 2 additions & 2 deletions man/mi_data.Rd

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

4 changes: 2 additions & 2 deletions man/mi_source_coverage.Rd

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

4 changes: 2 additions & 2 deletions man/mi_source_filters.Rd

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

4 changes: 2 additions & 2 deletions man/mi_sources.Rd

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

0 comments on commit fcf7fc3

Please sign in to comment.