[ESS] Weird knitr error

Yihui Xie xie at yihui.name
Sat May 4 08:20:03 CEST 2013


What does ls() return in the Rnw document? And what is the knitr version?

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Thu, May 2, 2013 at 11:13 PM, Kevin Wright <kw.stat at gmail.com> wrote:
> Windows 7, latest stable ESS, R 32 bit.
>
> I have a rnw file that I'm converting to pdf using knitr.  The output below
> is copied from the pdf.  Note the final error message indicates that "datm"
> cannot be found, even though ls() and head() can find "datm"!
>
> RStudio compiles this just fine.
>
> How do I debug this error?
>
> Kevin
>
>
> R> ls()
> [1] "dat" "datm" "datna" "datr" "gam" "ge" "M" "m.er" "m.ev" "m.fw"
> [11] "m.fw0" "m.sv" "m.tw" "mm" "mr" "p.er" "p.ev" "p.fw" "p.sv" "p.tw"
> [21] "pm" "pr" "vars"
>
> R> head(datm)
> env gen yield
> 1 87:GGA Bienvenu 1.442
> 2 87:ID Bienvenu 1.242
> 3 87:MT Bienvenu 2.616
> 4 87:NC Bienvenu 1.001
> 5 87:OR Bienvenu 4.556
> 6 87:SC Bienvenu 2.500
>
> R> datm$res <- resid(mm)
> Error: object ’datm’ not found
>
>
> --
> Kevin Wright
>
>         [[alternative HTML version deleted]]
>
>
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>



More information about the ESS-help mailing list