Skip to content

Commit

Permalink
final final final?
Browse files Browse the repository at this point in the history
  • Loading branch information
medewitt committed Feb 28, 2019
1 parent 928bfdc commit a8b8180
Show file tree
Hide file tree
Showing 31 changed files with 162 additions and 70 deletions.
6 changes: 6 additions & 0 deletions R/add_qwi_labels.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
#'
#' @examples \donttest{
#'library(tidyqwi)
#'
#' # Add labels
#'labelled_nc <- add_qwi_labels(nc_qwi)
#'
#' # Check the label for the data
#'attr(labelled_nc[["Emp"]], "label")
#'
#'
#'}
#'
#'@export
Expand Down
11 changes: 11 additions & 0 deletions R/check_census_api_call.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@
#' @param call a returned call from the US Census API
#' @import xml2
#' @import httr
#'@examples \donttest{
#'library(tidyqwi)
#'library(httr)
#' # A single call to the API without an API Key
#'url <- "api.census.gov/data/timeseries/qwi/sa?get=Emp&for=county:198&key=NOKEY"
#'single_call <- httr::GET(url)
#'
#'# Because a non valid API key was specified an message will be returned
#'
#'check_census_api_call(single_call)
#'
#'}
#'
#' @export

Expand Down
8 changes: 4 additions & 4 deletions R/check_fips.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
#' @examples \donttest{
#' library(tidyqwi)
#'
#' convert_fips(37)
#' convert_fips("37")
#' convert_fips("NC")
#' convert_fips("nc")
#' converted_fips(37)
#' converted_fips("37")
#' converted_fips("NC")
#' converted_fips("nc")
#'
#' }
#'
Expand Down
6 changes: 3 additions & 3 deletions R/get_qwi.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
#'@import utils
#'@importFrom future plan
#'
#'@examples \donttest{
#'@examples \dontrun{
#'library(tidyqwi)
#'
#' # One state, one year
#'nc_qwi <- get_qwi(years = "2010",
#' states = "11",
#' geography = "county",
#' apikey = census_key,
#' quiet = TRUE, endpoint = "rh",
#' endpoint = "rh",
#' variables = c("sEmp", "Emp"), all_groups = FALSE,
#' industry_level = "2", processing = "sequential")
#'
Expand All @@ -41,7 +41,7 @@
#' states = c("NC", "SC"),
#' geography = "county",
#' apikey = census_key,
#' quiet = TRUE, endpoint = "rh",
#' endpoint = "rh",
#' variables = c("sEmp", "Emp"), all_groups = FALSE,
#' industry_level = "2", processing = "sequential")
#'}
Expand Down
1 change: 1 addition & 0 deletions R/parse_qwi_message.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#'@title parse_qwi
#'@description An internally used function to parse the returned API call.
#'@param x a returned call response from the US Census QWI API
#'@export

Expand Down
2 changes: 1 addition & 1 deletion docs/CODE_OF_CONDUCT.html

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

4 changes: 2 additions & 2 deletions docs/LICENSE-text.html

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

2 changes: 1 addition & 1 deletion docs/LICENSE.html

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

2 changes: 1 addition & 1 deletion docs/articles/index.html

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

6 changes: 3 additions & 3 deletions docs/articles/multi_state_year.html

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

2 changes: 1 addition & 1 deletion docs/authors.html

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

11 changes: 7 additions & 4 deletions docs/index.html

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

9 changes: 4 additions & 5 deletions docs/news/index.html

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

21 changes: 17 additions & 4 deletions docs/reference/add_qwi_labels.html

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

18 changes: 16 additions & 2 deletions docs/reference/check_census_api_call.html

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

12 changes: 10 additions & 2 deletions docs/reference/converted_fips.html

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

Loading

0 comments on commit a8b8180

Please sign in to comment.