[R] package forecast is not working properly

120 views
Skip to first unread message

Magda Joana Silva

unread,
Jul 1, 2015, 9:43:11 AM7/1/15
to r-h...@r-project.org
Hello all,

I just installed "forecast" package but I have the following error when I
try to load the library:


> library("forecast")
Loading required package: zoo

Attaching package: ‘zoo’

The following objects are masked from ‘package:base’:

as.Date, as.Date.numeric

Loading required package: timeDate
Error : .onAttach failed in attachNamespace() for 'forecast', details:
call: fun(libname, pkgname)
error: 4 arguments passed to .Internal(nchar) which requires 3
In addition: Warning messages:
1: package ‘forecast’ was built under R version 3.2.1
2: package ‘zoo’ was built under R version 3.2.1
Error: package or namespace load failed for ‘forecast’

I am running Windows 7 and the package is in my local library (I don't have
admin rights).

I would be very appreciated if someone could help me


mjs

[[alternative HTML version deleted]]

______________________________________________
R-h...@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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

unread,
Jul 2, 2015, 4:16:15 AM7/2/15
to Magda Joana Silva, r-h...@r-project.org


This has been reported once on rhelp and once on StackOverflow and both times the advice to update to R 3.2.1 was effective in removing the difficulty. (You did get a warning.)

R 3.2.1 changed the number of arguments to nchar and this was announced in the NEWS.

--
David.
David Winsemius
Alameda, CA, USA

Uwe Ligges

unread,
Jul 2, 2015, 4:18:43 AM7/2/15
to Magda Joana Silva, r-h...@r-project.org

On 01.07.2015 14:51, Magda Joana Silva wrote:
> Hello all,
>
> I just installed "forecast" package but I have the following error when I
> try to load the library:
>
>
>> library("forecast")
> Loading required package: zoo
>
> Attaching package: ‘zoo’
>
> The following objects are masked from ‘package:base’:
>
> as.Date, as.Date.numeric
>
> Loading required package: timeDate
> Error : .onAttach failed in attachNamespace() for 'forecast', details:
> call: fun(libname, pkgname)
> error: 4 arguments passed to .Internal(nchar) which requires 3
> In addition: Warning messages:
> 1: package ‘forecast’ was built under R version 3.2.1

Apparently you are not using R-3.2.1? Either install forecast so that it
fits to your R installation or upgrade R.

Best,
Uwe Ligges

Reply all
Reply to author
Forward
0 new messages