Skip to content

Commit

Permalink
rebuild as proper working version with the various attributes of the …
Browse files Browse the repository at this point in the history
…data. Still has namespace problem that will fail CRAN checks.
  • Loading branch information
ellisp committed Oct 6, 2016
1 parent a991df6 commit 4a24315
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 21 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -31,3 +31,4 @@ vignettes/*.pdf
# Temporary files created by R markdown
*.utf8.md
*.knit.md
.Rproj.user
2 changes: 2 additions & 0 deletions build.R
@@ -1,5 +1,7 @@
library(devtools)
library(roxygen2)

source("prep/groom.R")

document("pkg")
check("pkg")
12 changes: 0 additions & 12 deletions pkg/NAMESPACE
@@ -1,14 +1,2 @@
# Generated by roxygen2: do not edit by hand

importFrom(Mcomp,"2011")
importFrom(Mcomp,The)
importFrom(Mcomp,Tourism)
importFrom(Mcomp,competition)
importFrom(Mcomp,data)
importFrom(Mcomp,forecasting)
importFrom(Mcomp,from)
importFrom(Mcomp,plot.Mdata)
importFrom(Mcomp,print.Mdata)
importFrom(Mcomp,subset.Mcomp)
importFrom(Mcomp,the)
importFrom(Mcomp,tourism)
16 changes: 7 additions & 9 deletions pkg/R/misc-doc.R
@@ -1,5 +1,5 @@

#' @importFrom Mcomp plot.Mdata print.Mdata subset.Mcomp

#'
#' Tourism competition data
#'
Expand All @@ -13,18 +13,16 @@
#' first yearly series, "Q20" denotes 20th quarterly series and so on.}
#' \item{n}{The number of observations in the time series}
#' \item{h}{The number of required forecasts}
#' \item{period}{Interval of the time series. Possible values are "YEARLY", "QUARTERLY",
#' "MONTHLY" & "OTHER".}
#' \item{type}{The type of series. Possible values for M1 are "DEMOGR", "INDUST",
#' "MACRO1", "MACRO2", "MICRO1", "MICRO2" & "MICRO3". Possible
#' values for M3 are "DEMOGRAPHIC", "FINANCE", "INDUSTRY", "MACRO",
#' "MICRO", "OTHER".}
#' \item{description}{A short description of the time series}
#' \item{period}{Interval of the time series. Possible values are "YEARLY", "QUARTERLY" &
#' "MONTHLY"}
#' \item{type}{The type of series. For data in \code{tourism}, this is always "TOURISM".}
#' \item{description}{"No description available". Kept for consistency with the M3 and M1 data.}
#' \item{x}{A time series of length \code{n} (the historical data)}
#' \item{xx}{A time series of length \code{h} (the future data)}
#' }
#' @source \url{http://robjhyndman.com/papers/the-tourism-forecasting-competition}
#' @seealso \code{\link[Mcomp]{subset.Mcomp}}, \code{\link[Mcomp]{plot.Mdata}}
#' @examples
#' plot(tourism$Y1)
"tourism"
"tourism"
#' @importFrom Mcomp plot.Mdata print.Mdata subset.Mcomp
Binary file modified pkg/data/tourism.rda
Binary file not shown.
4 changes: 4 additions & 0 deletions pkg/man/tourism.Rd

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

5 changes: 5 additions & 0 deletions tourismcomp.Rproj
Expand Up @@ -11,3 +11,8 @@ Encoding: UTF-8

RnwWeave: knitr
LaTeX: XeLaTeX

BuildType: Package
PackageUseDevtools: Yes
PackagePath: pkg
PackageInstallArgs: --no-multiarch --with-keep.source

0 comments on commit 4a24315

Please sign in to comment.