Skip to content

Commit

Permalink
remove chunk_size parameter in influx_query (s.
Browse files Browse the repository at this point in the history
  • Loading branch information
dleutnant committed Sep 2, 2015
1 parent fe72c3f commit 4985482
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
12 changes: 0 additions & 12 deletions R/influxdb.R
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,6 @@ influx_write <- function(con,
#' ("default" (=UTC), "n", "u", "ms", "s", "m", "h").
#' @param return_xts logical. Sets the return type. If set to TRUE, xts objects
#' are returned, FALSE gives data.frames.
#' @param chunk_size Sets the chunk size when querying large amounts of data
#' By default the chunk size is 10.000.
#' @param verbose logical. Provide additional details?
#'
#' @return A list of xts or data.frame objects.
Expand All @@ -248,7 +246,6 @@ influx_query <- function(con,
query = "SELECT * FROM measurement",
timestamp_format = "default",
return_xts = TRUE,
chunk_size = NULL,
verbose = FALSE) {

# development options
Expand All @@ -267,15 +264,6 @@ influx_query <- function(con,
}
}

# add chunk_size parameter
if (!is.null(chunk_size)) {
if (is.integer(chunk_size)) {
q <- c(q, chunk_size = chunk_size)
} else {
stop("bad parameter 'chunk_size'. Must be of type integer.")
}
}

# add query
q <- c(q, q = query)

Expand Down
6 changes: 1 addition & 5 deletions man/influx_query.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
\title{influx_query}
\usage{
influx_query(con, db = NULL, query = "SELECT * FROM measurement",
timestamp_format = "default", return_xts = TRUE, chunk_size = NULL,
verbose = FALSE)
timestamp_format = "default", return_xts = TRUE, verbose = FALSE)
}
\arguments{
\item{con}{An influx_connection object (s. \code{influx_connection}).}
Expand All @@ -21,9 +20,6 @@ influx_query(con, db = NULL, query = "SELECT * FROM measurement",
\item{return_xts}{logical. Sets the return type. If set to TRUE, xts objects
are returned, FALSE gives data.frames.}

\item{chunk_size}{Sets the chunk size when querying large amounts of data
By default the chunk size is 10.000.}

\item{verbose}{logical. Provide additional details?}
}
\value{
Expand Down

0 comments on commit 4985482

Please sign in to comment.