[ESS] Problem with preview of Rd files

Stephen Eglen S.J.Eglen at damtp.cam.ac.uk
Thu Oct 27 11:18:30 CEST 2011

David Scott <d.scott at auckland.ac.nz> wrote:

> I am getting an error message when I try to preview a .Rd file file
> with C-c C-p:
> Warning in file(con, "r") :
>   cannot open file
> ''c:/Users/dsco036/Documents/Research/Packages/hwriterPlusDevel/hwriterPlus/man/hwriterPlus-package.Rd'':
> Invalid argument
> Error in file(con, "r") : cannot open the connection
> Execution halted

A couple of things to check.  

1. when in the .Rd buffer, what does the following give?
  C-h v buffer-file-name

Is it the same as what R thinks, above (c:/Users...)

2. From a shell, can you try something like 

   R CMD Rd2txt "c:/Users...-package.Rd"

as that is what Emacs is doing.


More information about the ESS-help mailing list