Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

French fixes and pkgdown changes #55

Merged
merged 4 commits into from Dec 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .Rbuildignore
Expand Up @@ -8,3 +8,6 @@
^pkgdown
.travis.yml
cran-comments.md
vignettes/listing_cansim_tables.Rmd
vignettes/working_with_hierarchies.Rmd
vignettes/retrieving_cansim_vectors.Rmd
4 changes: 2 additions & 2 deletions CRAN-RELEASE
@@ -1,2 +1,2 @@
This package was submitted to CRAN on 2018-11-17.
Once it is accepted, delete this file and tag the release (commit 40e5b61929).
This package was submitted to CRAN on 2018-12-03.
Once it is accepted, delete this file and tag the release (commit 1109fb2145).
6 changes: 3 additions & 3 deletions DESCRIPTION
@@ -1,13 +1,13 @@
Package: cansim
Type: Package
Title: Functions and convenience tools for accessing Statistics Canada data tables
Version: 0.2.1
Title: Accessing Statistics Canada Data Table and Vectors
Version: 0.2.2
Authors@R: c(
person("Jens", "von Bergmann", email = "jens@mountainmath.ca", role = c("cre")),
person("Dmitry", "Shkolnik", email = "shkolnikd@gmail.com", role = c("aut")))
Maintainer: Jens von Bergmann <jens@mountainmath.ca>
Description: Searches for, accesses, and retrieves new-format and old-format Statistics Canada data
tables as tidy data frames. This package deals with encoding issues, allows for
tables, as well as individual vectors, as tidy data frames. This package deals with encoding issues, allows for
bilingual English or French language data retrieval, and bundles convenience functions
to make it easier to work with retrieved table data. Optional caching features are provided.
License: MIT + file LICENSE
Expand Down
19 changes: 16 additions & 3 deletions NEWS.md
@@ -1,4 +1,17 @@
# 0.2.0
## Major changes
- Initial release
## cansim 0.2.2

### Major changes
- French metadata for retrived tables now implemented
- Reference article vignettes now built for site only

## cansim 0.2.1

### Minor changes

- License file made more clear

## cansim 0.2.0

### Major changes
- Initial release

253 changes: 156 additions & 97 deletions R/cansim.R

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions R/cansim_tables_list.R
@@ -1,6 +1,8 @@
#' Retrieve list of all Statistics Canada data tables
#'
#' Internal function to collect an up-to-date and complete list of Statistics Canada data tables
#' @return cansim table list
#' @keywords internal
get_cansim_table_list <- function(){
start=0
rows=1000
Expand All @@ -21,6 +23,8 @@ get_cansim_table_list <- function(){
#' An internal method to get page of Statistics Canada data tables
#' @param start_offset starting row
#' @param max_rows number of rows, maximum is 1000
#' @return cansim table list
#' @keywords internal
get_cansim_table_list_page <- function(start_offset=0,max_rows=1000){
if (max_rows>1000) {
warning("Clipping to 1000 rows")
Expand Down
6 changes: 6 additions & 0 deletions cran-comments.md
Expand Up @@ -4,3 +4,9 @@

## R CMD check results
There were no ERRORs or WARNINGs or NOTEs.

## Changes from previous submissions

* Redundancies removed from package title
* Implement timeout and retry for API requests to remote servers
* Reduced number of vignettes to be generated during package build--putting them online on an accompanying package website instead.
2 changes: 1 addition & 1 deletion 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.

42 changes: 23 additions & 19 deletions docs/articles/cansim.html

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

47 changes: 35 additions & 12 deletions docs/articles/index.html

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