Skip to content
Prev 78887 / 398502 Next

Hmisc latex function

On Wed, 2005-10-12 at 08:33 -0500, Charles Dupont wrote:
Hmisc version 3.0-7, Dated 2005-09-15, which is the latest according to
CRAN.
+ "echo Hello BOB > test.test",
+ ";","cat test.test"))
sh: line 0: cd: â€œ/tmp/RtmpGY5553â€: No such file or directory
[1] "Hello BOB"
$ cd /tmp/RtmpGY5553
$ pwd
/tmp/RtmpGY5553


$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=


On the creation of the sys() call, it looks like the backquotes are
causing the problem:
[1] "cd â€œ/tmp/RtmpGY5553â€"
$ cd â€œ/tmp/RtmpGY5553â€
bash: cd: â€œ/tmp/RtmpGY5553â€: No such file or directory
$ cd "/tmp/RtmpGY5553"
$ pwd
/tmp/RtmpGY5553


According to ?dQuote:

By default, sQuote and dQuote provide undirectional ASCII quotation
style. In a UTF-8 locale (see l10n_info), the Unicode directional quotes
are used.

The See Also points to "shQuote for quoting OS commands."


HTH,

Marc