search for: anaumov

Displaying 6 results from an estimated 6 matches for "anaumov".

Did you mean: naumov
2010 Mar 05
2
Sweave and optional document sections
Dear R and Sweave users, Is there a way to have optional sections in a Sweave-generated report document, complete with section header(s), text and code chunks? In other words, I'd like for my report to include or omit certain sections based on the data itself. For example, If I examine the input dataset early on in the report and set a variable has_daily_data = TRUE, then I'd like to
2010 Feb 26
1
Automate generation of multiple reports using odfWeave
Dear R and odfWeave users, I am looking for a way to automate generation of many reports using odfWeave. All reports would use the same input ODT file, the only difference would be in the name of the dataset which will be analyzed in any particular report. Right now, the name of the dataset is hardcoded in the first code chuck in the input file: <<01 get data, echo=TRUE>> station =
2010 Nov 16
4
Simple error handling in R
Hi R experts, I am looking for a simple error handling approach, whereby I could stop function execution with a customized error message. For example: for (i in 1:10) { if (i == 5) # I'd like to be able to stop right here with an error message I have complete control over } The problem with stop() is that I cannot control completely what gets printed to the terminal, even with
2008 Sep 16
2
Setting user colors in barchart
Dear R Users, I have a basis question regarding the use of color in the lattice package. I read the ?barchart help page and searched the R archives but could not understand how to do it. I just need to plot a barchart using specific colors for my groups, e.g. green and red instead of the default lattice colors. How do I do that? If I say: barchart(x ~ a_factor, groups=my_groups,
2010 Feb 09
1
odfTable: table width and alignment
Dear R and odfWeave users, I am trying to figure out how to control table width and alignment on the page for a table generated by odfTable. Based on reading odfWeave documentation (including formattingOut.odt), here is how I manipulate the styles: st = getStyleDefs() # modify the table style tab = getStyles()$table st[[tab]]$align = "center" # seems to have no effect
2008 May 13
1
Problem with odfWeave: Unescaped '<' not allowed in attributes values
Dear R users, I am having a problem with odfWeave: when I run odfWeave('notes.odt', 'notes_out.odt') I get a bunch of errors that start with "Unescaped '<' not allowed in attributes values" in post-processing: <snip> ... 'content_1.xml' has been Sweaved Removing content.xml Post-processing the contents Unescaped '<' not