joshuaulrich / xts

Extensible time series class that provides uniform handling of many R time series classes by extending zoo.
http://joshuaulrich.github.io/xts/
GNU General Public License v2.0
220 stars 71 forks source link

build failure when building against R-3.1 #286

Closed nieder closed 4 years ago

nieder commented 5 years ago

Description

When building xts against R-3.1, this error occurs:

** installing vignettes
** testing if installed package can be loaded
Error : .onLoad failed in loadNamespace() for 'xts', details:
  call: register_s3_method("timeSeries", "as.timeSeries", "xts")
  error: could not find function "isNamespaceLoaded"
Error: loading failed
Execution halted
ERROR: loading failed

Session Info

> sessionInfo()
R version 3.1.3 (2015-03-09)
Platform: x86_64-apple-darwin16.7.0 (64-bit)
Running under: OS X 10.12.6 (unknown)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

Everything builds on R >= 3.2

joshuaulrich commented 5 years ago

Thanks for the report. Does this cause an actual problem for you, or are you reporting it as an artifact of testing you're doing?

nieder commented 5 years ago

I'm a maintainer for the Fink package manager (on macOS). We have R-xts-0.10-0 building on R-3.1 to 3.5. But this error happens with 0.11-2 on R-3.1. We can keep R-3.1 at 0.10-0 and update the other variants. So it's a not a critical problem.

joshuaulrich commented 4 years ago

I took a quick look and the problem is because isNamespaceLoaded() was introduced in R-3.2.0. Perhaps you can add the dependency on your end? I could create a special patch release for you here, if that would help.

I'm going to close this, since it isn't a critical issue. Please feel free to re-open if necessary.