Hi, 

I have a set of user defined package which I have installed in 2.8.1 for quite some time.  I installed 2.11.0 and 2.11.1 a couple of days ago while still having 2.8.1 version in my system. For the package, package.skeleton works fine in R 2.11.  However, it comes problem when I run Rcmd check/intall. The  intall.out shows below.

I further tested that I reran R-2.8.1/bin/R CMD check in 2.8.1.  it still works.  Then I ran and test the doomed function, gzWrite, in R-2.11.1/binRgui, it also works fine.  So, is this the problem in R-2.11.1/bin/Rcmd itself? How do I fix it?  I have MinGW, Perl, etc. installed in my system.

I also attached my function gzWrite below.

Thank you very much.


00check.out:
************************************************
* install options are ' --no-html'

* installing *source* package 'quantplus' ...
** R
** preparing package for lazy loading
** help
Warning: newline within quoted string at gzWrite.Rd:92
Warning: ./man/gzWrite.Rd:99: unknown macro '\n'
Warning: newline within quoted string at gzWrite.Rd:92
Error in parse_Rd("./man/gzWrite.Rd", encoding = "unknown", ...) : 
  Unexpected end of input (in " quoted string opened at gzWrite.Rd:99:46)
ERROR: installing Rd objects failed for package 'quantplus'
* removing 'd:/developer/projects/quant+/package_builder/quantplus.Rcheck/quantplus'

the problem function:
**************************************************
gzWrite = 
# write out a data frame into a gzip file in the format of write.table
function(ds, outdir, outpfx, datepfx, sep='\t', quote=TRUE, row.names=FALSE, col.names=TRUE, na='NA', append=FALSE) {
if (F) {
    ds = ds.price;
    outdir = pathPrice;
    outpfx = paste(pfx.price,'_',sep='');
    datepfx = fdate;
    sep = '\t';
    quote = TRUE;
    row.names = FALSE;
    col.names = TRUE;
    na = 'NULL';
    append = FALSE;
}
    file.out = paste(outdir, '\\', outpfx, datepfx, '.gz', sep='');
    file.tmp = paste(outdir, '\\', outpfx, datepfx, '.txt',sep='');
    write.table(ds, file=file.tmp, sep=sep, quote=quote, row.names=row.names, col.names=col.names, na=na, append=append);
    zz = gzfile(file.out, 'w');
    raw = file(file.tmp, 'r');
    cat(readLines(raw), file=zz, append=F, sep='\n');
    close(zz);
    close(raw);
    unlink(file.tmp);

    invisible(NA);
}


      
	[[alternative HTML version deleted]]

