[R-pkg-devel] invalid multibyte string on solaris?

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Thu Oct 31 01:30:19 CET 2019


On 30/10/2019 7:58 p.m., Toby Hocking wrote:
> Hi all, I am getting an "invalid multibyte string" error from one of my
> examples when it is run on solaris, which results in check FAILURE:
> https://www.r-project.org/nosvn/R.check/r-patched-solaris-x86/nc-00check.html
> 
> To fix this I guess I could just delete this example, but is there any
> easy/known fix? I searched the r-devel and r-package-devel lists and I did
> not find any relevant threads.

I don't know the cause or a fix, but a way to avoid the error would be 
to make the example conditional on not being on Solaris.  I would guess 
this test would do it:

if (!grepl("solaris", R.version$platform)) {
     emoji.txt.gz <- system.file("extdata", 
"wikipedia-emoji-text.txt.gz", package="nc")
     ETC.

I'd add a comment explaining why you have this test...

Duncan Murdoch

> 
> I also see that the same package on r-hub solaris is a check PASS:
> https://builder.r-hub.io/status/nc_2019.10.19.tar.gz-8b46d2a02a6340bcb313eeec96e404f3
> 
> I was expecting that CRAN and r-hub solaris builds should report the same
> results. What could be the difference? is this a bug in CRAN or in r-hub?
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>



More information about the R-package-devel mailing list