From ligges at statistik.tu-dortmund.de  Wed Sep 19 14:14:16 2012
From: ligges at statistik.tu-dortmund.de (Uwe Ligges)
Date: Wed, 19 Sep 2012 14:14:16 +0200
Subject: [Rd] Rcmd check problem
In-Reply-To: <CAHMG3xfpO3WOUb=kv1TFD6Cq1n8H+tyb9y5K=c8mEtnV_yZAyA@mail.gmail.com>
References: <CAHMG3xfpO3WOUb=kv1TFD6Cq1n8H+tyb9y5K=c8mEtnV_yZAyA@mail.gmail.com>
Message-ID: <5059B718.2090105@statistik.tu-dortmund.de>



On 19.09.2012 02:55, Qi Zhang wrote:
> Hi, all.
>
> I was trying to build my R package with R 2.15.1 32bit and win7.
>
> I basically follow the routine in Steven Mosher's blog
> http://stevemosher.wordpress.com/step-10-build/
>
> After I fixed the path, and built the skeleton of the package, I started
> command prompt and used the following commands in building my package
>
> Rcmd check myPackageName
>
> Rcmd build myPackageName
>
> Rcmd check myPackageName.tar.gz
>
> Rcmd INSTALL --build myPackageName.tar.gz
>
> Rcmd check myPackageName.zip
>
> The last check command return me an error
>
> Rcmd check myPackageName.zip


You cannot run R CMD check on a binary package. Just run it on the 
source package.

Uwe Ligges



> Error in rawToChar(block[seq_len(ns)]) :
>    embedded nul in string:
> 'PK\003\004\n\0\0\0\0\0}?1A\0\0\0\0\0\0\0\0\0\0\0\0\f\
> 0\0\0myPackageName/PK\003\004\n\0\0\0\0\0y?1A\0\0\0\0\0\0\0\0\0\0\0\0\021\0\0\0myPackageName/demo/PK\003\004\024\0\002\0\b\0y'
> Execution halted
>
> I do not know what it means. On the other hand, we I
> load  myPackageName.zip as a package from the local zip file, it works. I
> did not get any error from my other two Rcmd check commands neither.
>
> I am wondering whether the returned error of Rcmd check means anything, and
> whether my package can be uploaded to CRAN without much trouble.
>
> Thanks.
>
> Best,
>
> Qi
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] Rcmd check problem
Uwe Ligges