Skip to content
Prev 26314 / 63424 Next

Building package with R 2.6.0 on Windows/Cygwin gives error with tar

I tried setenv TAR="tar --force-local" and also tried changing the
build script directly to
    R_system(join(" ",
		  ("tar --force-local -chf",
		   &shell_quote_file_path($filepath),
		   "$pkgname")));
but still had this error:
tar: Cannot execute remote shell: No such file or directory
tar: c\:/x/rpkgs/Drydown_1.41.tar: Cannot open: Input/Output error

Replacing R_system with print confirms that $filepath does not have
the backslash.

Curiously, at the bash prompt, this does work:
tar --force-local -chf "c:/X/Rpkgs/Drydown_1.41.tar" Drydown

Maybe a confusion between R_system and bash ???

I'm happy to help test this further, but with the hack reported at the
start of this thread I'm also content to let this drop (or go off
list).

Kevin Wright
On 10/5/07, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote: