Skip to content

Commit

Permalink
Updated examples to use tsibble as an import
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelloharawild committed Jun 4, 2020
1 parent 8c801e7 commit cf62604
Show file tree
Hide file tree
Showing 15 changed files with 78 additions and 15 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ Authors@R: c(
)
Depends:
R (>= 3.1.3)
Imports:
tsibble (>= 0.9.0)
Suggests:
tsibble (>= 0.9.0),
ggplot2
ByteCompile: true
License: GPL-3
Expand Down
39 changes: 32 additions & 7 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#' @format Time series of class `tsibble`
#' @keywords datasets
#' @examples
#'
#' library(tsibble)
#' PBS
#'
NULL
Expand All @@ -48,9 +48,11 @@ NULL
#' @format Time series of class `tsibble`
#' @keywords datasets
#' @examples
#' if(requireNamespace("ggplot2") && requireNamespace("tsibble")){
#' library(ggplot2)
#' library(tsibble)
#' olympic_running
#'
#' if(requireNamespace("ggplot2")){
#' library(ggplot2)
#' olympic_running %>% as_tibble %>%
#' ggplot(aes(x=Year, y = Time, colour = Sex)) +
#' geom_line() +
Expand All @@ -77,6 +79,11 @@ NULL
#' @name aus_retail
#' @format Time series of class `tsibble`
#' @keywords datasets
#'
#' @examples
#' library(tsibble)
#' aus_retail
#'
NULL

#' Passenger numbers on Ansett airline flights
Expand All @@ -102,6 +109,10 @@ NULL
#' @name ansett
#' @format Time series of class `tsibble`
#' @keywords datasets
#' @examples
#' library(tsibble)
#' ansett
#'
NULL


Expand Down Expand Up @@ -139,6 +150,9 @@ NULL
#' @name nyc_bikes
#' @format Time series of class `tsibble`
#' @keywords datasets
#' @examples
#' library(tsibble)
#' nyc_bikes
NULL

#' GAFA stock prices
Expand Down Expand Up @@ -167,6 +181,9 @@ NULL
#' @name gafa_stock
#' @format Time series of class `tsibble`
#' @keywords datasets
#' @examples
#' library(tsibble)
#' gafa_stock
NULL


Expand All @@ -187,6 +204,9 @@ NULL
#' @name pelt
#' @format Time series of class `tsibble`
#' @keywords datasets
#' @examples
#' library(tsibble)
#' pelt
NULL


Expand Down Expand Up @@ -215,6 +235,9 @@ NULL
#' @name global_economy
#' @format Time series of class `tsibble`
#' @keywords datasets
#' @examples
#' library(tsibble)
#' global_economy
NULL

#' Australian livestock slaughter
Expand All @@ -237,6 +260,9 @@ NULL
#' @name aus_livestock
#' @format Time series of class `tsibble`
#' @keywords datasets
#' @examples
#' library(tsibble)
#' aus_livestock
NULL

#' Half-hourly electricity demand for Victoria, Australia
Expand Down Expand Up @@ -267,9 +293,8 @@ NULL
#'
#' @keywords datasets
#' @examples
#'
#' library(tsibble)
#' vic_elec
#'
NULL

#' Quarterly production of selected commodities in Australia.
Expand All @@ -294,7 +319,7 @@ NULL
#'
#' @keywords datasets
#' @examples
#'
#' library(tsibble)
#' aus_production
#'
NULL
Expand Down Expand Up @@ -327,7 +352,7 @@ NULL
#'
#' @keywords datasets
#' @examples
#'
#' library(tsibble)
#' hh_budget
#'
NULL
6 changes: 6 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
This submission resolves reverse dependency issues introduced by tsibble package
version 0.9.0, which is currently 'waiting' for CRAN acceptance.

## Test environments
* local ubuntu 18.04 install, R 3.6.1
* ubuntu 16.04 (on GitHub actions), R 4.0.0, R 3.6.3, R 3.5.3
Expand All @@ -8,3 +11,6 @@
## R CMD check results

0 errors | 0 warnings | 0 notes

Reverse dependency checks have been performed:
* feasts has changed to worse, and has a submission resolving this issue
2 changes: 1 addition & 1 deletion man/PBS.Rd

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

5 changes: 5 additions & 0 deletions man/ansett.Rd

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

4 changes: 4 additions & 0 deletions man/aus_livestock.Rd

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

2 changes: 1 addition & 1 deletion man/aus_production.Rd

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

5 changes: 5 additions & 0 deletions man/aus_retail.Rd

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

4 changes: 4 additions & 0 deletions man/gafa_stock.Rd

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

4 changes: 4 additions & 0 deletions man/global_economy.Rd

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

2 changes: 1 addition & 1 deletion man/hh_budget.Rd

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

4 changes: 4 additions & 0 deletions man/nyc_bikes.Rd

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

6 changes: 4 additions & 2 deletions man/olympic_running.Rd

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

4 changes: 4 additions & 0 deletions man/pelt.Rd

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

3 changes: 1 addition & 2 deletions man/vic_elec.Rd

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

0 comments on commit cf62604

Please sign in to comment.