Skip to content

Commit 04b4f6b

Browse files
authored
Merge pull request #91 from mountainMath/c0.3.7
Fix warning on Solaris and Note on some other platforms
2 parents d2c0490 + 2d0d868 commit 04b4f6b

62 files changed

Lines changed: 124 additions & 103 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CRAN-RELEASE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
This package was submitted to CRAN on 2021-05-07.
2-
Once it is accepted, delete this file and tag the release (commit fa498df).
1+
This package was submitted to CRAN on 2021-05-08.
2+
Once it is accepted, delete this file and tag the release (commit 7ff77e4).

DESCRIPTION

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: cansim
22
Type: Package
33
Title: Accessing Statistics Canada Data Table and Vectors
4-
Version: 0.3.6
4+
Version: 0.3.7
55
Authors@R: c(
66
person("Jens", "von Bergmann", email = "jens@mountainmath.ca", role = c("cre")),
77
person("Dmitry", "Shkolnik", email = "shkolnikd@gmail.com", role = c("aut")))
@@ -29,14 +29,14 @@ Imports: digest (>= 0.1),
2929
tibble,
3030
utils,
3131
DBI,
32-
RSQLite,
33-
dbplyr
32+
RSQLite
3433
RoxygenNote: 7.1.1
3534
Suggests: knitr,
3635
rmarkdown,
3736
scales,
3837
tidyr,
39-
ggplot2
38+
ggplot2,
39+
dbplyr
4040
URL: https://github.com/mountainMath/cansim, https://mountainmath.github.io/cansim/, https://www.statcan.gc.ca/
4141
BugReports: https://github.com/mountainMath/cansim/issues
4242
VignetteBuilder: knitr

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# cansim 0.3.7
2+
## Minor changes
3+
* Fix problem with UTF-8 encoding on solaris
4+
* move dbplyr dependence from Imports to Suggests
5+
16
# cansim 0.3.6
27
## Major changes
38
* Fold part of `normalize_cansim_values` into the default table and vector output, in particular always add a scaled variable column called `val_norm` and an imputed `Date` column and covert categories to factors by default.

R/cansim_sql.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,12 +347,12 @@ create_index <- function(connection,table_name,field){
347347
#' @param append optional parameter, append to database or overwrite, defaul=`FALSE`
348348
#' @param col_types optional parameter for csv column types
349349
#' @param na na character strings
350-
#' @param text_encoding encoding of csv file (default UTF8)
350+
#' @param text_encoding encoding of csv file (default UTF-8)
351351
#' @param delim (Optional) csv deliminator, default is ","
352352
#' @keywords internal
353353
csv2sqlite <- function(csv_file, sqlite_file, table_name, transform=NULL,chunk_size=5000000,
354354
append=FALSE,col_types=NULL,na=c(NA,"..","","...","F"),
355-
text_encoding="UTF8",delim = ",") {
355+
text_encoding="UTF-8",delim = ",") {
356356
# Connect to database.
357357
if (!append && file.exists(sqlite_file)) file.remove(sqlite_file)
358358
con <- DBI::dbConnect(RSQLite::SQLite(), dbname=sqlite_file)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The package also contains a convenience function that will re-scale and re-label
6868

6969
For example, values in the `VALUE` field may be reported in "millions", so a `VALUE` of 10 means 10,000,000. By default the {cansim} package adds a `val_norm` column with scaled values, so to get the value of the `val_norm` the `VALUE` column will be converted from 10 to 10,000,000 in the example given. Similarly, percentages will be converted to rates, so instead of being 0-100 it will be normalized to 0-1 in the `val_norm` column.
7070

71-
Prior to version 0.3.6 this was achieved by calling the `normalize_cansim_values` functions, the use of which is now redundant and is deprecated.
71+
Prior to version 0.3.7 this was achieved by calling the `normalize_cansim_values` functions, the use of which is now redundant and is deprecated.
7272

7373
### Vectors
7474

@@ -173,15 +173,15 @@ If you want to get in touch, we are pretty good at responding via email or via t
173173

174174
If you wish to cite the `cansim` package in your work:
175175

176-
von Bergmann, J., Dmitry Shkolnik (2021). cansim: functions and convenience tools for accessing Statistics Canada data tables. v0.3.6.
176+
von Bergmann, J., Dmitry Shkolnik (2021). cansim: functions and convenience tools for accessing Statistics Canada data tables. v0.3.7.
177177

178178
A BibTeX entry for LaTeX users is
179179
```
180180
@Manual{,
181181
author = {Jens {von Bergmann} and Dmitry Shkolnik},
182182
title = {cansim: functions and convenience tools for accessing Statistics Canada data tables},
183183
year = {2021},
184-
note = {R package version 0.3.6},
184+
note = {R package version 0.3.7},
185185
url = {https://mountainmath.github.io/cansim/},
186186
}
187187
```

cran-comments.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Test environments
2-
* local OS X install, R 3.6.2
3-
* ubuntu 14.04.5 LTS (on travis-ci), R 3.6.2
2+
* local OS X install, R 4.0.5
3+
* GitHub Action macOS-latest, windows-lastest (3.6), ubuntu-16.04 (devel, release, oldrel), ubuntu-16.04 (3.4, 3.5)
44

55
## R CMD check results
66
There were no ERRORs or WARNINGs or NOTEs.
@@ -49,3 +49,6 @@ There were no ERRORs or WARNINGs or NOTEs.
4949
* fix a bug that would not properly add hierarchies when category names are repeated
5050
* Use system unzip if `getOption("unzip")` is set to enable unzip for files larger than 4GB on unix-like systems
5151

52+
# Changes from version 0.3.6
53+
* Fix problem with UTF-8 encoding on solaris
54+
* move dbplyr dependence from Imports to Suggests

docs/404.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE-text.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/cansim.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)