Displaying 1 result from an estimated 1 matches for "model_lst".
Did you mean:
model_list
2010 Jan 16
1
Sweave - How to use local objects in code chunks
...r message that the object sel_model
could not been found. How can I achieve to use objects within code-chunks
that are not globally available, but only within my function call of
create_report? Is it only possible to use globally available objects within
a code chunk?
create_report<-function(model_lst){
#define parameters
sel_model<-model_lst
Sweave(''report_template.rnw'')
tools::texi2dvi("report_template.tex", pdf=TRUE)
}
create_report(p3)
this is the file report_template.rnw
\documentclass[a4paper]{article}
\begin{document}
<<echo=FA...