Skip to content

Commit

Permalink
bump v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
keberwein committed Oct 10, 2016
1 parent a21f4d8 commit bfda6e8
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: blscrapeR
Type: Package
Title: An API Wrapper for the Bureau of Labor Statistics (BLS)
Version: 1.0.1.9000
Version: 1.0.2
Authors@R: person("Kris", "Eberwein", email = "[email protected]",
role = c("aut", "cre"))
Description: Scrapes various data from the Bureau of Labor Statistics, which is the statistical branch of the United States Department of Labor. The package has additional functions to help parse, analyze and visualize the data.
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# blscrapeR 1.0.2

## Bug Fixes
* Updated URLs for the get_bls_state() function.

## Tets
* Updated tests for the get_bls_state() function.

# blscrapeR 1.0.1

## Major Release
Expand Down
4 changes: 2 additions & 2 deletions R/get_bls_state.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

get_bls_state <- function(date_mth=NULL, seasonality = TRUE){
state.name=NULL
seas <- "http://www.bls.gov/lau/ststdsadata.txt"
notseas <- "http://www.bls.gov/lau/ststdnsadata.txt"
seas <- "http://www.bls.gov/web/laus/ststdsadata.txt"
notseas <- "http://www.bls.gov/web/laus/ststdnsadata.txt"
if (seasonality == TRUE){
dat <- readLines(seas)
}
Expand Down
2 changes: 1 addition & 1 deletion R/qcew_api.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ qcew_api <- function(year=2012, qtr=1, slice=NULL, sliceCode=NULL){
},
error=function(cond) {
message(paste("URL does not seem to exist. Please check your parameters and try again.", url))
return(NA)
return(NULL)
},
warning=function(cond) {
message(paste("URL caused a warning. Please check your parameters and try again:", url))
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test_bls_csv.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ testthat::expect_identical(nrow(out), nrow(df))
date_mth=NULL
seasonality = TRUE
state.name=NULL
seas <- "http://www.bls.gov/lau/ststdsadata.txt"
seas <- "http://www.bls.gov/web/laus/ststdsadata.txt"
dat <- readLines(seas)

# If no date_mth is specified, find the latest month and return.
Expand Down

0 comments on commit bfda6e8

Please sign in to comment.