[R] Sweave, TEXINPUTS problem

johannes rara johannesraja at gmail.com
Mon Sep 28 19:17:20 CEST 2009


Thanks. I'm using Aquamacs. I think that it uses pdflatex to typeset
.tex-files. I can find pdflatex from my computer using

~ > locate pdflatex

Johannes

2009/9/28 Charles C. Berry <cberry at tajo.ucsd.edu>:
> On Mon, 28 Sep 2009, johannes rara wrote:
>
>> Hi,
>>
>> I'm trying to use Sweave in my .tex-documents using
>>
>> \usepackage{Sweave}
>>
>> notation. I have this line in my .bash_profile
>>
>> export
>> TEXINPUT=.:/Users/jrara/Library/Frameworks/R.framework/Resources/share/texmf:$TEXINPUTS
>>
>> When trying to typeset this .tex document, I get an error message saying
>>
>> ERROR: LaTeX Error: File `Sweave.sty' not found.
>
> You did not save how you were trying to typeset the .tex doc.
>
> I'd let texi2dvi take care of TEXINPUTS.
>
> In R, see
>
>        ?tools:::texi2dvi
>
> and at the bash prompt try
>
>        R CMD texi2dvi --help
>
> for documentation.
>
> Maybe using
>
>        R CMD texi2dvi -p mytex.tex
>
> will do it for you.
>
> HTH,
>
> Chuck
>
>>
>> I tried to google this problem but could not find a solution.
>>
>> -Johannes
>>
>>> sessionInfo()
>>
>> R version 2.9.2 (2009-08-24)
>> i386-apple-darwin8.11.1
>>
>> locale:
>> fi_FI.UTF-8/fi_FI.UTF-8/C/C/fi_FI.UTF-8/fi_FI.UTF-8
>>
>> attached base packages:
>> [1] stats     graphics  grDevices utils     datasets  methods   base
>>>
>>
>> ______________________________________________
>> 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.
>>
>
> Charles C. Berry                            (858) 534-2098
>                                            Dept of Family/Preventive
> Medicine
> E mailto:cberry at tajo.ucsd.edu               UC San Diego
> http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901
>
>
>




More information about the R-help mailing list