From bbolker at gmail.com  Tue Nov 27 23:03:26 2012
From: bbolker at gmail.com (Ben Bolker)
Date: Tue, 27 Nov 2012 17:03:26 -0500
Subject: [Rd] R CMD check fails when run in a directory with parentheses in
 the pathname
Message-ID: <50B538AE.5020400@mcmaster.ca>


  For what it's worth: running R CMD check on a package when the outdir
has parentheses in the pathname fails with the following error:

* checking PDF version of manual ...sh: Syntax error: "(" unexpected
 WARNING
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
* checking PDF version of manual without hyperrefs or index ...sh:
Syntax error: "(" unexpected
 ERROR
Re-running with no redirection of stdout/stderr.

  The workaround is as simple as using -o to redirect the output to a
sane path.

  This could be just a case of "don't do this", but I wanted to save
some future problem-Googler 10 minutes of digging around in the guts of
.tools:::check_packages() to find out what was going on ...

  I don't know whether this is technically a bug or not.  Presumably
something could be tweaked in check_pkg_manual() within
src/library/tools/R/check.R to protect parentheses in the shell argument
string ...

  Ben Bolker



[Rd] R CMD check fails when run in a directory with parentheses in the pathname
Ben Bolker