Skip to content

spectr

Calculate the Periodogram of a Time-Course

v1.0.1 · Feb 7, 2022 · GPL-2

Description

Provides a consistent interface to use various methods to calculate the periodogram and estimate the period of a rhythmic time-course. Methods include Lomb-Scargle, fast Fourier transform, and three versions of the chi-square periodogram. See Tackenberg and Hughey (2021) <doi:10.1371/journal.pcbi.1008567>.

Downloads

CRAN

226

Last 30 days

19758th

612

Last 90 days

2.9K

Last year

Trend: +43% (30d vs prior 30d)

r2u CRAN

10

Last 30 days

24

Last 90 days

103

Last year

Trend: -28.6% (30d vs prior 30d)

autoCRAN

2

Last 7 days

3

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

3 ERROR
10 OK
Show all 13 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 OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 ERROR
r-release-macos-x86_64 ERROR
r-release-windows-x86_64 ERROR
Check details (3 non-OK)
ERROR r-release-macos-arm64

tests

Running ‘testthat.R’ [1s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(spectr)
  > 
  > test_check('spectr')
  Saving _problems/test_pgram-15.R
  Saving _problems/test_pgram-24.R
  Saving _problems/test_pgram-33.R
  Saving _problems/test_pgram-41.R
  Saving _problems/test_pgram-49.R
  Saving _problems/test_spectr-15.R
  Saving _problems/test_spectr-24.R
  Saving _problems/test_spectr-33.R
  Saving _problems/test_spectr-42.R
  Saving _problems/test_spectr-51.R
  [ FAIL 10 | WARN 0 | SKIP 0 | PASS 3 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_pgram.R:15:3'): CSP greedy ─────────────────────────────────────
  Error in `dyn.load(file, DLLpath = DLLpath, ...)`: unable to load shared object '/Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/qs/libs/qs.so':
    dlopen(/Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/qs/libs/qs.so, 0x0006): Symbol not found: _SET_CLOENV
    Referen
...[truncated]...
t_spectr.R:42:3
   2.   └─base::library.dynam(lib, package, package.lib)
   3.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
  ── Error ('test_spectr.R:51:3'): spectr FFT ────────────────────────────────────
  Error in `dyn.load(file, DLLpath = DLLpath, ...)`: unable to load shared object '/Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/qs/libs/qs.so':
    dlopen(/Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/qs/libs/qs.so, 0x0006): Symbol not found: _SET_CLOENV
    Referenced from: <AA665871-E63C-349E-A381-34F936D898C9> /Volumes/Builds/packages/sonoma-arm64/Rlib/4.6/qs/libs/qs.so
    Expected in:     <463735C6-E22F-3AE6-AEF9-E59BA5B5FC66> /Library/Frameworks/R.framework/Versions/4.6/Resources/lib/libR.dylib
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_spectr.R:51:3
   2.   └─base::library.dynam(lib, package, package.lib)
   3.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
  
  [ FAIL 10 | WARN 0 | SKIP 0 | PASS 3 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-release-macos-x86_64

tests

Running ‘testthat.R’ [3s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(spectr)
  > 
  > test_check('spectr')
  Saving _problems/test_pgram-15.R
  Saving _problems/test_pgram-24.R
  Saving _problems/test_pgram-33.R
  Saving _problems/test_pgram-41.R
  Saving _problems/test_pgram-49.R
  Saving _problems/test_spectr-15.R
  Saving _problems/test_spectr-24.R
  Saving _problems/test_spectr-33.R
  Saving _problems/test_spectr-42.R
  Saving _problems/test_spectr-51.R
  [ FAIL 10 | WARN 0 | SKIP 0 | PASS 3 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_pgram.R:15:3'): CSP greedy ─────────────────────────────────────
  Error in `dyn.load(file, DLLpath = DLLpath, ...)`: unable to load shared object '/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/qs/libs/qs.so':
    dlopen(/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/qs/libs/qs.so, 0x0006): Symbol not found: _SET_CLOENV
    Ref
...[truncated]...
:3
   2.   └─base::library.dynam(lib, package, package.lib)
   3.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
  ── Error ('test_spectr.R:51:3'): spectr FFT ────────────────────────────────────
  Error in `dyn.load(file, DLLpath = DLLpath, ...)`: unable to load shared object '/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/qs/libs/qs.so':
    dlopen(/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/qs/libs/qs.so, 0x0006): Symbol not found: _SET_CLOENV
    Referenced from: <38F2B027-A0B8-34C3-82BB-B64B0EC2EA4D> /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/qs/libs/qs.so
    Expected in:     <174E517E-2847-39E5-BA5A-7AD14DA5B6DC> /Library/Frameworks/R.framework/Versions/4.6-x86_64/Resources/lib/libR.dylib
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_spectr.R:51:3
   2.   └─base::library.dynam(lib, package, package.lib)
   3.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
  
  [ FAIL 10 | WARN 0 | SKIP 0 | PASS 3 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-release-windows-x86_64

tests

Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(spectr)
  > 
  > test_check('spectr')
  Saving _problems/test_pgram-15.R
  Saving _problems/test_pgram-24.R
  Saving _problems/test_pgram-33.R
  Saving _problems/test_pgram-41.R
  Saving _problems/test_pgram-49.R
  Saving _problems/test_spectr-15.R
  Saving _problems/test_spectr-24.R
  Saving _problems/test_spectr-33.R
  Saving _problems/test_spectr-42.R
  Saving _problems/test_spectr-51.R
  [ FAIL 10 | WARN 0 | SKIP 0 | PASS 3 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_pgram.R:15:3'): CSP greedy ─────────────────────────────────────
  Error in `inDL(x, as.logical(local), as.logical(now), ...)`: unable to load shared object 'D:/RCompile/CRANpkg/lib/4.6/qs/libs/x64/qs.dll':
    LoadLibrary failure:  Die angegebene Prozedur wurde nicht gefunden.
  
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at 
...[truncated]...
.dll':
    LoadLibrary failure:  Die angegebene Prozedur wurde nicht gefunden.
  
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_spectr.R:42:3
   2.   └─base::library.dynam(lib, package, package.lib)
   3.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
   4.       └─base (local) inDL(x, as.logical(local), as.logical(now), ...)
  ── Error ('test_spectr.R:51:3'): spectr FFT ────────────────────────────────────
  Error in `inDL(x, as.logical(local), as.logical(now), ...)`: unable to load shared object 'D:/RCompile/CRANpkg/lib/4.6/qs/libs/x64/qs.dll':
    LoadLibrary failure:  Die angegebene Prozedur wurde nicht gefunden.
  
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_spectr.R:51:3
   2.   └─base::library.dynam(lib, package, package.lib)
   3.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
   4.       └─base (local) inDL(x, as.logical(local), as.logical(now), ...)
  
  [ FAIL 10 | WARN 0 | SKIP 0 | PASS 3 ]
  Error:
  ! Test failures.
  Execution halted

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-windows-x86_64

tests

Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(spectr)
  > 
  > test_check('spectr')
  Saving _problems/test_pgram-15.R
  Saving _problems/test_pgram-24.R
  Saving _problem
...[truncated]...
lib, package, package.lib)
   3.     └─base::dyn.load(file, DLLpath = DLLpath, ...)
   4.       └─base (local) inDL(x, as.logical(local), as.logical(now), ...)
  
  [ FAIL 10 | WARN 0 | SKIP 0 | PASS 3 ]
  Error:
  ! Test failures.
  Execution halted

Dependency Network

Dependencies Reverse dependencies data.table foreach lomb spectr

Version History

1 tracked
new 1.0.1 Mar 10, 2026

R Observatory began tracking this package on Mar 10, 2026; it first appeared on CRAN Feb 7, 2022. Releases before tracking aren’t shown.