You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEWS.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
# cansim 0.3.8
2
2
## Minor changes
3
-
* Exclude vignette from CRAN checks
3
+
* Exclude vignette from automatic CRAN checks to fix problem of CRAN checks failing when StatCan servers are down and lead to the package being removed from CRAN (checks are still active in local environment and when using GitHub action checks)
4
4
* add release date info to cube metadata and cube list calls
5
5
* add auto-refresh option for sqlite tables
6
+
* remove deprecated `adjust_cansim_values_by_variable` function
Copy file name to clipboardExpand all lines: R/cansim.R
+23-19Lines changed: 23 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
#' @param timeout (Optional) Timeout in seconds for downloading cansim table to work around scenarios where StatCan servers drop the network connection.
12
12
# Set to higher values for large tables and slow network connection. (Default is \code{200}).
#' (Deprecated) Adjust values in a retrieved Statistics Canada data table using a scaling variable
31
-
#'
32
-
#' (Deprecated) Adjust retrieved data table values by a scaled amount; however French does not work, probably due to encoding issues. This function is now deprecated and should not be used.
#' @param default_day The default day of the month that should be used when creating Date objects for monthly data (default set to "01")
556
548
# Set to higher values for large tables and slow network connection. (Default is \code{200}).
557
549
#'
558
-
#' @return tibble format data table output with added Date column with inferred date objects and
559
-
#' a "val_norm" column with normalized VALUE using the supplied scale factor
550
+
#' @return A tibble with StatCan Table data and added \code{Date} column with inferred date objects and
551
+
#' added \code{val_norm} column with normalized value from the \code{VALUE} column.
560
552
#'
561
553
#' @examples
562
554
#' \donttest{
@@ -639,6 +631,8 @@ get_cansim <- function(cansimTableNumber, language="english", refresh=FALSE, tim
639
631
#' @param timeout (Optional) Timeout in seconds for downloading cansim table to work around scenarios where StatCan servers drop the network connection.
640
632
# Set to higher values for large tables and slow network connection. (Default is \code{200}).
641
633
#'
634
+
#' @return A tibble with the table overview information
#' @param timeout (Optional) Timeout in seconds for downloading cansim table to work around scenarios where StatCan servers drop the network connection.
664
658
# Set to higher values for large tables and slow network connection. (Default is \code{200}).
665
659
#'
660
+
#' @return A tibble with the table survey code and name
#' @param timeout (Optional) Timeout in seconds for downloading cansim table to work around scenarios where StatCan servers drop the network connection.
687
683
# Set to higher values for large tables and slow network connection. (Default is \code{200}).
688
684
#'
685
+
#' @return A tibble with the table subject code and name.
#' @param timeout (Optional) Timeout in seconds for downloading cansim table to work around scenarios where StatCan servers drop the network connection.
710
708
# Set to higher values for large tables and slow network connection. (Default is \code{200}).
711
709
#'
710
+
#' @return A tibble with the StatCan Notes for the table
#' @param timeout (Optional) Timeout in seconds for downloading cansim table to work around scenarios where StatCan servers drop the network connection.
733
733
# Set to higher values for large tables and slow network connection. (Default is \code{200}).
734
734
#'
735
+
#' @return A tibble listing the column names of the StatCan table.
#' @param timeout (Optional) Timeout in seconds for downloading cansim table to work around scenarios where StatCan servers drop the network connection.
757
759
# Set to higher values for large tables and slow network connection. (Default is \code{200}).
758
760
#'
761
+
#' @return A tibble with detailed information on StatCan table categories for the specified field
#' collect data from connection and normalize cansim table output
218
+
#' Collect data from connection and normalize cansim table output
220
219
#'
221
-
#' @param connection connection to database
220
+
#' @param connection A connection to a local StatCan table SQLite database as returned by \code{get_cansim_sqlite},
221
+
#' possibly with filters or other \code{dbplyr} verbs applied
222
222
#' @param replacement_value (Optional) the name of the column the manipulated value should be returned in. Defaults to adding the `val_norm` value field.
223
223
#' @param normalize_percent (Optional) When \code{true} (the default) normalizes percentages by changing them to rates
224
224
#' @param default_month The default month that should be used when creating Date objects for annual data (default set to "01")
225
225
#' @param default_day The default day of the month that should be used when creating Date objects for monthly data (default set to "01")
226
226
#' @param factors (Optional) Logical value indicating if dimensions should be converted to factors. (Default set to \code{false}).
227
227
#' @param strip_classification_code (strip_classification_code) Logical value indicating if classification code should be stripped from names. (Default set to \code{false}).
228
-
#' @return a tibble with the normalized data
228
+
#' @return A tibble with the collected and normalized data
Copy file name to clipboardExpand all lines: cran-comments.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,7 @@ There were no ERRORs or WARNINGs or NOTEs.
55
55
56
56
# Changes from version 0.3.7
57
57
## Minor changes
58
-
* Exclude vignette from CRAN checks
58
+
* Exclude vignette from automatic CRAN checks to fix problem of CRAN checks failing when StatCan servers are down and lead to the package being removed from CRAN (checks are still active in local environment and when using GitHub action checks)
59
59
* add release date info to cube metadata and cube list calls
60
60
* add auto-refresh option for sqlite tables
61
+
* remove deprecated `adjust_cansim_values_by_variable` function
0 commit comments