Re: [Rd] Rcmd check problem

From: Duncan Murdoch <murdoch.duncan_at_gmail.com>
Date: Wed, 19 Sep 2012 08:12:14 -0400

On 18/09/2012 8:55 PM, 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 check process is designed to work on source tar files, but also works (sometimes with some extra warnings) on package directories. It won't work on binary packages at all.

I recommend reading the documentation. Blogs are often out of date or wrong for other reasons. (If you were following instructions there, this is an example of the latter. It has never been correct to run check on a .zip file.)

Duncan Murdoch

>
> The last check command return me an error
>
> Rcmd check myPackageName.zip
>
> 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



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 19 Sep 2012 - 12:15:39 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 19 Sep 2012 - 12:50:43 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive