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]]
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. On Jul 1, 2015, at 5:51 AM, 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 > 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-help at 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 Alameda, CA, USA
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.1Apparently 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> 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-help at 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. >