-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
consistently named functions, fredr_*
- Loading branch information
Showing
17 changed files
with
84 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(api_docs) | ||
export(fredr) | ||
export(fredr_docs) | ||
export(fredr_key) | ||
export(fredr_search) | ||
export(fredr_series) | ||
export(get_freq) | ||
export(set_api_key) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
library(fredr) | ||
context("fredr_docs") | ||
|
||
test_that("fredr_docs throws errors on invalid endpoints", { | ||
expect_error(fredr_docs(endpoint = "foo", debug = TRUE)) | ||
expect_silent(fredr_docs(endpoint = "series", debug = TRUE)) | ||
expect_silent(fredr_docs(endpoint = "series", params = TRUE, debug = TRUE)) | ||
expect_silent(fredr_docs(endpoint = "series", params = TRUE)) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
library(fredr) | ||
context("get_freq") | ||
# library(fredr) | ||
# context("get_freq") | ||
|
||
test_that("get_freq functions properly", { | ||
expect_error(get_freq()) | ||
expect_error(get_freq(series_id = "foo")) | ||
expect_silent(get_freq(series_id = "GNPCA")) | ||
expect_is(get_freq(series_id = "GNPCA"), "character") | ||
}) | ||
# test_that("get_freq functions properly", { | ||
# expect_error(get_freq()) | ||
# expect_error(get_freq(series_id = "foo")) | ||
# expect_silent(get_freq(series_id = "GNPCA")) | ||
# expect_is(get_freq(series_id = "GNPCA"), "character") | ||
# }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters