|
42 | 42 | #' @usage get_filtered_statements(dbname = 'sejmrp', user = 'reader',
|
43 | 43 | #' password = 'qux94874', host = 'services.mini.pw.edu.pl',
|
44 | 44 | #' windows = .Platform$OS.type == 'windows', terms_of_office = integer(0),
|
45 |
| -#' deputies = character(0), dates = character(0), topics = character(0)) |
46 |
| -#' content = integer(0) |
| 45 | +#' deputies = character(0), dates = character(0), topics = character(0), |
| 46 | +#' content = character(0), max_rows = Inf) |
47 | 47 | #'
|
48 | 48 | #' @param dbname name of database; default: 'sejmrp'
|
49 | 49 | #' @param user name of user; default: 'reader'
|
|
52 | 52 | #' @param windows information of used operation system; default: .Platform$OS.type == 'windows'
|
53 | 53 | #' @param terms_of_office range of terms of office's numbers that will be taken to filter data
|
54 | 54 | #' from database; default: integer(0)
|
55 |
| -#' @param terms_of_office range of terms of office's numbers that will be taken to filter data |
56 |
| -#' from database; default: integer(0) |
57 | 55 | #' @param deputies full names of deputies that will be taken to filter data from database;
|
58 | 56 | #' default: character(0)
|
59 | 57 | #' @param dates period of time that will be taken to filter data from database;
|
|
62 | 60 | #' default: character(0)
|
63 | 61 | #' @param content text patterns that will be taken to filter data from database;
|
64 | 62 | #' default: character(0)
|
65 |
| -#' @param max_rows maximum number of rows to download |
| 63 | +#' @param max_rows maximum number of rows to download; default: Inf |
66 | 64 | #'
|
67 | 65 | #' @return data frame with NULL
|
68 | 66 | #'
|
@@ -99,7 +97,7 @@ get_filtered_statements <- function(dbname = "sejmrp", user = "reader", password
|
99 | 97 | host = "services.mini.pw.edu.pl", windows = .Platform$OS.type == "windows",
|
100 | 98 | terms_of_office = integer(0), deputies = character(0),
|
101 | 99 | dates = character(0), topics = character(0), content = character(0),
|
102 |
| - max_rows=Inf) { |
| 100 | + max_rows = Inf) { |
103 | 101 | stopifnot(is.numeric(max_rows), is.character(dbname), is.character(user), is.character(password),
|
104 | 102 | is.character(host), is.logical(windows), is.numeric(terms_of_office), is.character(deputies),
|
105 | 103 | is.character(dates), is.character(topics), is.character(content),
|
|
0 commit comments