[Rd] Error generated by .Internal(nchar) disappears when debugging

Matt Dowle mattjdowle at gmail.com
Tue Oct 6 01:24:15 CEST 2015


Joris Meys <jorismeys <at> gmail.com> writes:

> 
> Hi all,
> 
> I have a puzzling problem related to nchar. In R 3.2.1, the internal 
nchar
> gained an extra argument (see
> https://stat.ethz.ch/pipermail/r-announce/2015/000586.html)
> 
> I've been testing code using the package copula, and at home I'm still
> running R 3.2.0 (I know, I know...). When trying the following code, I 
got
> an error:
> 
> > library(copula)
> > fgmCopula(0.8)
> Error in substr(sc[i], 2, nchar(sc[i]) - 1) :
>   4 arguments passed to .Internal(nchar) which requires 3
> 
> Cheers
> Joris


I'm seeing a similar problem. IIUC, the Windows binary .zip from CRAN of 
any package using base::nchar is affected. Could someone check my answer 
here is correct please : http://stackoverflow.com/a/32959306/403310

Matt



More information about the R-devel mailing list