Skip to content

Commit

Permalink
Merge pull request #28 from avantcredit/typofix
Browse files Browse the repository at this point in the history
bugfix, passing down silent_read_csv param
  • Loading branch information
abelcastilloavant authored Jun 10, 2016
2 parents 10ab731 + 7af89b1 commit f0e8c11
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: looker3
Type: Package
Title: looker3 (http://github.com/abelcastilloavant/avant-looker3)
Description: Pull data from Looker using the fancy new 3.0 API.
Version: 0.1.10
Version: 0.1.11
Author: Abel Castillo <[email protected]>
Maintainer: Abel Castillo <[email protected]>
Authors@R: c(person("Abel", "Castillo",
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Version 0.1.11
- Fixed bug where `looker3` was not passing `silent_read_csv` to `run_inline_query`.

# Version 0.1.10
- Added a param `silent_csv_read`, to switch off/on warnings while reading the stream into a data frame.

Expand Down
2 changes: 1 addition & 1 deletion R/looker3.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ looker3 <- checkr::ensure(pre = list( # model, view, and fields are
}

run_inline_query(looker_setup$LOOKER_URL, looker_setup$LOOKER_ID, looker_setup$LOOKER_SECRET,
model, view, fields, filters, limit)
model, view, fields, filters, limit, silent_read_csv)
}
)

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-looker3.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ withr::with_envvar(c(
with_mock(
`looker3:::run_inline_query` = function(url, id, secret,
model, view, fields, filters,
limit) {
limit, ...) {
list(url = url, id = id, secret = secret, model = model,
view = view, fields = fields, filters = filters,
limit = limit)
Expand Down

0 comments on commit f0e8c11

Please sign in to comment.