Skip to content

Commit

Permalink
import only named functions from stats
Browse files Browse the repository at this point in the history
  • Loading branch information
ellisp committed Oct 15, 2016
1 parent 47399f7 commit 132bea6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
6 changes: 6 additions & 0 deletions NEWS.md
@@ -1,5 +1,11 @@
# NEWS for ggseas

## 0.5.3
* Move stats, zoo and seasonal to imports rather than depends, and import only needed named functions

## 0.5.2
* Explicitly build vignette

## 0.5.1
* Minor improvements to documentation eg giving the vignette a title.

Expand Down
7 changes: 4 additions & 3 deletions pkg/DESCRIPTION
@@ -1,6 +1,6 @@
Package: ggseas
Title: 'stats' for Seasonal Adjustment on the Fly with 'ggplot2'
Version: 0.5.2.9000
Version: 0.5.3.9000
Authors@R: c(
person("Peter", "Ellis", , "peter.ellis2013nz@gmail.com", c("aut", "cre")),
person("Christophe", "Sax", role = "ctb")
Expand All @@ -10,9 +10,10 @@ Description: Provides 'ggplot2' 'stats' that estimate seasonally adjusted series
and rolling summaries such as rolling average on the fly for time series.
Depends:
R (>= 3.1.2),
ggplot2 (>= 2.0.0)
Imports:
seasonal,
ggplot2 (>= 2.0.0),
stats,
stats,
zoo
License: GPL-3
LazyData: true
Expand Down
5 changes: 4 additions & 1 deletion pkg/NAMESPACE
Expand Up @@ -9,5 +9,8 @@ export(stat_stl)
export(tsdf)
import(ggplot2)
import(seasonal)
import(stats)
importFrom(stats,decompose)
importFrom(stats,stl)
importFrom(stats,time)
importFrom(stats,ts)
importFrom(zoo,rollapplyr)
2 changes: 1 addition & 1 deletion pkg/R/ggsdc.R
@@ -1,6 +1,6 @@


#' @import stats
#' @importFrom stats ts decompose stl time
ggsdc_helper <- function(data, mapping, method, s.window,
type = c("additive", "multiplicative"),
index.ref, index.basis, start, frequency,
Expand Down

0 comments on commit 132bea6

Please sign in to comment.