[R] library 'ts' not available?
Dennis Murphy
djmuser at gmail.com
Tue Jul 26 05:01:39 CEST 2011
I don't recall exactly (ca 2004?) when the base R package structure
was reorganized, but some time ago a number of packages were merged
into a much smaller subset. Several of these were merged into the
stats package, including (but not exclusive to) ts, mva, nls and
ctest. Code using such packages is pretty ancient. The OP should try
removing (or commenting out) the library(ts) line and proceed with the
rest of the script. With code that old, one should expect breakdowns
to occur in other places.
Dennis
On Mon, Jul 25, 2011 at 5:42 PM, David Winsemius <dwinsemius at comcast.net> wrote:
>
> On Jul 22, 2011, at 5:03 PM, cplusplus programmer wrote:
>
>> hi,
>> When I type library(ts) (I am working on an ubuntu machine), I get the
>> following error:
>>
>>> library(ts)
>>
>> Error in library(ts) : there is no package called 'ts'
>
> You would have needed to have earlier installed that package before trying
> to load it.
>
>>
>> I did a few google searches and it seems like ts is no longer
>> available....is that correct?
>> It seemed to me that I would need to download Rmetrics instead....is that
>> the replacement for ts.
>
> To do ... what?
>
>>
>> Please let me know how I can get access to the ts libraries....
>
> This is a bit of a puzzle for me. I cannot find evidence that there ever was
> a "ts" package. (.... of course this does not sound like a question for
> Google but rather one for the packages pages of CRAN or r-forge.)
>
> I looked in the archived and orphaned packages
>
> http://cran.r-project.org/web/packages/
>
> ... none named "ts" A ts-class, perjaps? That is in the core packages.
>
> Looking in r-forge:
>
> https://r-forge.r-project.org/search/?type_of_search=soft&words=time+series&Search=Search
>
> None named "ts" ... FinTS, yes. "xts", yes
>
> Looking at the Time Series Task view...
>
> http://cran.r-project.org/web/views/TimeSeries.html
>
> ... no "ts" package. Many other packages however.
>
> --
> David.
>
>
>>
>> thanks!
>>
>> [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
> David Winsemius, MD
> West Hartford, CT
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list