Displaying 20 results from an estimated 800 matches similar to: "Is conditional evaluation of R code chunks possible in Sweave ?"
2008 Jul 28
1
How to set directory Rscript runs in/Sweave output directory
Hello
I am using Sweave to generate some pdf reports using R on a Windows
platform and would like to control the output directory that the
generated .tex file goes to. Basically I use the following commands in
a batch file:
set outdir=c:/output/1234
Rscript -e Sweave('C:/pathpathpath/script.Rnw')
Which produces script.tex
Sweave has the option of specifying an output directory for
2013 Mar 13
1
multi-comparison of means
Hi all:
I have a question about multi-comparison.
The data is in the attachment.
My purpose:
Compare the predicted means of the 3 methods(a,b,c) pairwisely.
I have 3 ideas:
#idea1
result_aov<-aov(y~ method + x1 + x2)
TukeyHSD(result_aov)
diff lwr upr p adj
b-a 0.845 0.5861098 1.1038902 0.0000001
c-a 0.790 0.5311098 1.0488902 0.0000002
c-b -0.055 -0.3138902
2008 Oct 16
1
Rscript -e, Sweave and tempdir()
Hello R-Help
I have a question about the "behind the scenes" behaviour of the Rscript -e command and particularly its interaction with Sweave and tempdir().
We are trying to deploy R as a web service to do water quality analyses and have been writing software to call Sweave via Rscript eg:
cmd> Rscript -e Sweave('sweavefile.Rnw')
One problem we have been having is that
2009 Feb 16
0
problem with gls finding model terms without specifying data=named.object
Hello R-help
I am having trouble getting gls to find the R objects that comprise a linear model when the data=named.object option(option!) is not specified. In the gls() help it states data is "an optional data frame containing the variables named in model, correlation, weights, and subset. By default the variables are taken from the environment from which gls is called".
An example:
2009 Apr 23
1
how to control significant digits(?) on axis labels
Dear R mailing list
I would like some help on how to get R to display the same number of significant digits (?) for *all* tick marks on axis labels (yet be flexible enough to handle different data sets that vary by 10-1000X).
Consider this simple example:
#---------------------------#
x <- seq(0,2,by=0.5)
xlim <- range(pretty(x,n=5))
ylim <- xlim
2008 Sep 29
1
problem running Sweave as a web service with anti-virus software
Hello R mailing list
We are trying to use R and Sweave, running as a web service on a server
to prepare statistical reports but are having problems with our
anti-virus software apparently prohibiting execution due to what we
think is Sweave trying to run an executable in one of the system's
temporary folders.
As background, we use the following Rscript command to invoke Sweave
(the text in
2008 Jul 28
1
Is there a way to avoid loading dependendent packages?
Hello R help list
I have been using the smoothScatter function within the "geneplotter"
package to make some graphs using a Sweave Rnw script called via Rscript
in a DOS/Windows batch file. The Rscript will ultimately be called by a
web service with time-out constraints, hence things need to run as
swiftly as possible.
The geneplotter package is currently loaded each time R is invoked
2008 Jun 02
0
Missing "spline_coef" DLL and Rob Hyndmans monotonic interpolator
Hello R help
I have been trying to use Rob Hyndman's monotonically increasing spline
function. But like another user or two seem have a problem with a
missing DLL (namely "spline_coef"). None of the previous help postings
seemed to have any solutions to this problem. As per a Ripley
suggestion I have deleted all previous versions of R and reinstalled R
2.7.0 and the problem
2000 Jul 11
1
MANOVA
Hi
I need to compare the performance of two sludge inertization methods. For that i want make a manova Wilks test.
Description of the experiment:
After the calcination at different temperatures my calcinated sludge are submeted to the lixiviation test. In my tables i show the concentration of the some elements in the extract phase.
The results:
Method A (calcination at 1100 C)
Chromium
2009 Jun 26
0
Modifying Sweave.sty to allow escapes with fancyvrb package in LaTeX
Dear Colleagues:
In an attempt to have things like # See page \pageref{this} inside
comments in R code chunks I have modified Sweave.sty as below. I have
followed fancyvrb's manual with regard to the use of the commandchars
argument. But when compiling with LaTeX (using attached test file) I
get a LaTeX error
(/usr/share/texmf-texlive/tex/latex/ae/t1aett.fd)
! Missing \endcsname
2012 Apr 04
3
Rgui maintains open file handles after Sweave error
Hello Folks,
When I run the document below through sweave, rgui.exe/rsession.exe
leaves a file handle open to the sweave-001.pdf graphic (as verified by
process explorer). Pdflatex.exe then crashes (with a Permission Denied
error) because the graphic file is locked.
This only seems to happen when there is an error in the sweave document.
When there are no errors, no file handles are left open.
2008 Jul 10
1
odfWeave problem in 7.1?
Max & Friends,
I've run into a problem with odfWeave 0.7.5 running under R 2.7.1
(Windows XP, SP2) doing some monthly production reports.
Under 2.7.1 I'm getting various parsing errors after Sweaving starts, e.g.:
Sweaving content.Rnw
Writing to file content_1.xml
Processing code chunks ...
Error in parse(text = cmd) : unexpected input in ""
>
Above case works
2009 Jun 25
1
Setting default plot size in Sweave
Dear Colleagues:
I have used
\SweaveOpts{prefix.string=plot, eps = FALSE, pdf = TRUE}
\SweaveOpts{width=5, height=4}
<<fig=T>>=
plot(...)
@
But the figure still has a width of 80% of the text width, the default
set up by Sweave, which issues a LateX command in Sweave.sty of
\setkeys{Gin}{.8\textwidth}. Sweave.sty has a command
\ifthenelse{\boolean{Sweave at
2009 Jul 13
3
SweaveListingUtils question
Hello,
recently I read about the SweaveListingUtils package and now I want to try
it out. However, I can not make it work...
Below a minimal example. The problem seems to be the following line
(generated by SweaveListingPreparations()?):
\ifthenelse{\boolean{Sweave@gin}}{\setkeys{Gin}{width=0.6\textwidth}}{}%
If I comment out this line, it works.
What can I do about this?
I am using the
2009 Jul 15
1
Read PNG file and display with more than 256 colors RGDAL
Hello list
I am trying to use a Googlemaps tile (png file, 640 X 640 px tile) as a background to a plot and have been using the rgdal library to read in the PNG file (modified from code in the RGoogleMaps package). This works OK. My problem is is that the SGDF2PCT function in rgdal seems to be limited to 256 colors and this is introducing (I think) some degradation to the image which appears on
2010 Mar 22
2
Problem with factors in lm() when using Rscript but not GUI
Hello R-help
I am having a curious problem. I am using a batch file to call an R script and am getting an error when performing a lm() fit using factorial data only when running in batch mode (see below). I do not get the error when executing the same code in GUI mode in R 2.10.1. Nor do I get the error when using Rscript version 2.9.2....
#######################################
#windows
2012 Apr 14
1
Sweave UFT8 problem
Hi,
I work on MacOS, trying to Sweave an UFT8 document.
AFAI remember R 2.14 used to render a warning when the encoding was not
declared when using Sweave.
With R 2.15 it seems to render an error.
Sweave("sim_pi.Rnw")
Error: 'sim_pi.Rnw' is not ASCII and does not declare an encoding
Declaring an encoding by adding a line like
\usepackage[utf8]{inputenc}
in the preamble does
2005 May 31
0
Plot Font Size in Sweave
Dear List
I'm working to modify the font size inside of an plot generated using
Sweave. I found a thread in the archives addressing this issue from F.
Leisch which suggests the solution below. I'm wondering if this is still
the best option for this problem or if another solution may exist.
Here is how I have resolved the issue based on the prior thread.
1) I modified the original
2009 Jan 11
1
Problem using odfWeave
Hi everybody,
I don't get odfWeave to run properly. My odt file is as a simple as:
------------------------
Some text.
<<echo=FALSE>>=
print(1:10)
@
-----------------------
The output I get ist the following:
-----------------------------------
> odfWeave("roffice.odt", "rofficeOUT.odt")
Copying roffice.odt
Setting wd to
2011 Sep 17
0
Problem using SNOW with data frame as a function argument
Hello
I would like to use SNOW to parallelise some computations to be made on columns of a data frame, using different parameter values for each SNOW "worker".
I gather(?) clusterMap() is the appropriate SNOW function to do something like this. I suspect the problem lies in the fact that I am only supplying one data frame argument for the flow.dat function argument yet the a, b, and x