Skip to content

Commit

Permalink
CRAN bump 4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
keberwein committed Mar 14, 2024
1 parent 2688a40 commit cc2d0c4
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 135 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Package: blscrapeR
Type: Package
Title: An API Wrapper for the United States Bureau of Labor Statistics
Version: 4.0.0
Version: 4.0.1
Authors@R: person("Kris", "Eberwein", email = "[email protected]",
role = c("aut", "cre"))
Description: Scrapes various data from United States Bureau of Labor Statistics. The Bureau of Labor Statistics is the statistical branch of the United States Department of Labor. The package has additional functions to help parse, analyze and visualize the data.
Description: Scrapes various data from <https://www.bls.gov/>. The Bureau of Labor Statistics is the statistical branch of the United States Department of Labor. The package has additional functions to help parse, analyze and visualize the data.
Depends: R (>= 3.5.0)
Imports:
httr,
Expand Down
3 changes: 0 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export(quick_nonfarm_employed)
export(quick_unemp_level)
export(quick_unemp_rate)
export(search_ids)
export(set_bls_key)
export(urlExists)
importFrom(dplyr,arrange)
importFrom(dplyr,filter)
Expand All @@ -38,5 +37,3 @@ importFrom(stringr,str_to_title)
importFrom(stringr,str_trim)
importFrom(tibble,as_tibble)
importFrom(utils,capture.output)
importFrom(utils,read.table)
importFrom(utils,write.table)
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# blscrapeR 4.0.1

## Bug Fixes

* Added the API address to the Description file.

* Removed the `set_bls_key()` function to remain in compliance with CRAN policies.

# blscrapeR 4.0.0

## Bug Fixes
Expand Down
66 changes: 0 additions & 66 deletions R/set_bls_key.R

This file was deleted.

19 changes: 0 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,25 +95,6 @@ You should consider [getting an API key](http://data.bls.gov/registrationEngine/
| Optional annual averages | Yes | No |
| Series descriptions | Yes | No |

### Key Install

``` r
library(blscrapeR)
set_bls_key("YOUR_KEY_IN_QUOTATIONS")
# First time, reload your enviornment so you can use the key without restarting R.
readRenviron("~/.Renviron")
# You can check it with:
Sys.getenv("BLS_KEY")
```

Note: The above script will add a line to your `.Renviron` file to be re-used when ever you are in the package. If you are not comfortable with that, you can add the following line to your `.Renviron` file manually to produce the same result.

`BLS_KEY='YOUR_KEY_IN_SINGLE_QUOTES'`

Advanced Usage
--------------

Now that you have an API key installed, you can call your key in the package’s function arguments with `"BLS_KEY"`. Don't forget the quotes! If you just HAVE to have your key hard-coded in your scripts, you can also pass they key as a string.

### Download Multiple BLS Series at Once

Expand Down
31 changes: 29 additions & 2 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## Resubmission
Corrected two items of concern by CRAN review.

* Added the API address to the Description file.

* Removed the `set_bls_key()` function to remain in compliance with CRAN policies regarding writing files to user space. Also, removed any mention of the function from documentation and vignettes.


## Test environments
* local Fedora 33, R 4.05
* win-latest (devel)
Expand All @@ -7,6 +15,25 @@

## R CMD check results

0 errors | 0 warnings | 1 note
0 errors | 0 warnings | 2 notes

## Notes:
CRAN repository db overrides:
X-CRAN-Comment: Archived on 2023-02-07 for repeated policy violation.

* This package was previously archived due to CRAN violations, which have all been fixed. The violations regarded bad URL links in documentation and vignettes.


Found the following (possibly) invalid URLs:
URL: https://www.bls.gov/
From: DESCRIPTION
Status: 403
Message: Forbidden

* The following note was generated when I added the BLS url to the DESCRIPTION file as requested by CRAN reviewer. The url is valid.






* This is a new release.
2 changes: 1 addition & 1 deletion man/firstupper.Rd

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

42 changes: 0 additions & 42 deletions man/set_bls_key.Rd

This file was deleted.

0 comments on commit cc2d0c4

Please sign in to comment.