stlplus
Enhanced Seasonal Decomposition of Time Series by Loess
Description
Decompose a time series into seasonal, trend, and remainder components using an implementation of Seasonal Decomposition of Time Series by Loess (STL) that provides several enhancements over the STL method in the stats package. These enhancements include handling missing values, providing higher order (quadratic) loess smoothing with automated parameter choices, frequency component smoothing beyond the seasonal and trend components, and some basic plot methods for diagnostics.
Downloads
1.1K
Last 30 days
3536th
4.4K
Last 90 days
27.9K
Last year
Trend: -25.7% (30d vs prior 30d)
CRAN Check Status
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | ERROR |
| r-devel-linux-x86_64-fedora-gcc | NOTE |
| r-devel-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | NOTE |
| r-oldrel-macos-x86_64 | NOTE |
| r-oldrel-windows-x86_64 | NOTE |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (6 non-OK)
compiled code
File ‘stlplus/libs/stlplus.so’: Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’ It is good practice to register native routines and to disable symbol search. See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
tests
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
>
> test_check("stlplus")
Loading required package: stlplus
Saving _problems/tests-32.R
Saving _problems/tests-33.R
Saving _problems/tests-40.R
Saving _problems/tests-41.R
[ FAIL 4 | WARN 0 | SKIP 0 | PASS 3 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('tests.R:32:3'): stlplus matches stl ───────────────────────────────
Expected `mean(abs(seasonal(x1) - seasonal(x2))) < 1e-12` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
── Failure ('tests.R:33:3'): stlplus matches stl ───────────────────────────────
Expected `mean(abs(trend(x1) - trend(x2))) < 1e-12` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
── Failure ('tests.R:40:3'): stlplus matches stl ───────────────────────────────
Expected `mean(abs(seasonal(x1) - seasonal(x2))) < 1e-12` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
── Failure ('tests.R:41:3'): stlplus matches stl ───────────────────────────────
Expected `mean(abs(trend(x1) - trend(x2))) < 1e-12` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
[ FAIL 4 | WARN 0 | SKIP 0 | PASS 3 ]
Error:
! Test failures.
Execution halted
compiled code
File ‘stlplus/libs/stlplus.so’: Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’ It is good practice to register native routines and to disable symbol search. See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
LazyData
'LazyData' is specified without a 'data' directory
LazyData
'LazyData' is specified without a 'data' directory
LazyData
'LazyData' is specified without a 'data' directory
Check History
ERROR 9 OK · 4 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
compiled code
File ‘stlplus/libs/stlplus.so’: Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’ It is good practice to register native routines and to disable symbol search. See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
compiled code
File ‘stlplus/libs/stlplus.so’: Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’ It is good practice to register native routines and to disable symbol search. See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
LazyData
'LazyData' is specified without a 'data' directory
LazyData
'LazyData' is specified without a 'data' directory
LazyData
'LazyData' is specified without a 'data' directory