[R] Sweave in 2.13.1
Duncan Murdoch
murdoch.duncan at gmail.com
Sat Jul 16 23:53:33 CEST 2011
On 11-07-16 4:08 PM, Duncan Murdoch wrote:
> On 11-07-16 2:33 PM, BXC (Bendix Carstensen) wrote:
>> I run Windows XP.
>>
>> and in a command window I get:
>>
>>> c:\stat\r\R-2.13.1\bin\i386\Rcmd Sweave Lexis.rnw
>> Error in length(arg) : 'arg' is missing
>> Calls:<Anonymous>
>> Execution halted
>>
>> AND:
>>
>>> c:\stat\r\R-2.13.1\bin\i386\Rcmd Sweave --help
>> Error in length(arg) : 'arg' is missing
>> Calls:<Anonymous>
>> Execution halted
>>
>> BUT:
>>
>>> c:\stat\r\R-2.13.0\bin\i386\Rcmd Sweave --help
>> Usage: R CMD Sweave file
>>
>> A simple front-end for Sweave
>>
>> Options:
>> -h, --help print this help message and exit
>> -v, --version print version info and exit
>>
>> Report bugs to<r-bugs at r-project.org>.
>>
>> Same probelem for help on Stangle, but not for any other command.
>>
>> Is this a bug or some new facility I overlooked?
>
> Looks like a bug to me. I'll take a look.
Yes, some fixes in R-devel got only partly ported back to 2.13.1. I
think this only affected Windows.
I'll commit a patch shortly. In the meantime, you can do what
R CMD Sweave file.Rnw
does quite easily:
Rterm.exe --no-restore --slave -e utils::Sweave("file.Rnw")
should do the same thing. In R-devel, R CMD Sweave has more options.
Duncan Murdoch
>
> Duncan Murdoch
>
>>
>> Best regards,
>> Bendix
>> _________________________________________
>>
>> Bendix Carstensen
>> Senior Statistician
>> Steno Diabetes Center A/S
>> Niels Steensens Vej 2-4
>> DK-2820 Gentofte
>> Denmark
>> +45 44 43 87 38 (direct)
>> +45 30 75 87 38 (mobile)
>> bxc at steno.dk www.biostat.ku.dk/~bxc
>> www.steno.dk
>>
>> This e-mail (including any attachments) is intended for ...{{dropped:8}}
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list