Displaying 20 results from an estimated 9000 matches similar to: "brew equivalent of "R CMD Sweave""
2010 Aug 07
0
several figures from one Sweave chunk? [solved]
(on-list)
Hello Cameron
On Fri, 6 Aug 2010 19:02:22 +0100
Liviu Andronic <landronimirc at gmail.com> wrote:
> On Fri, 6 Aug 2010 11:30:59 -0600
> Cameron Bracken <cameron.bracken at gmail.com> wrote:
> > There is no real good way to deal with this in Sweave. Sweave does
> > not actually know anything about the graphics it is creating, all
> > it knows it that a
2012 Mar 28
1
Nested brew call yields Error in .brew.cat(26, 28) : unused argument(s) (26, 28)
I am writing several webpages using the brew package and R2HTML. I would
like to work off one script so I am using nested brew calls. The
documentation for brew states that:
"NOTE: brew calls can be nested and rely on placing a function named
?.brew.cat? in the environment in which it is passed. Each time brew is
called, a check for the existence of this function is made. If it
exists,
2012 Aug 29
1
latex \subfloat{} incompatible with sweave/knitr code
Dear all
Are LaTeX \subfloat{} commands incompatible with Sweave code? I cannot
get the following code to compile properly:
\begin{table}
\subfloat[asdfa]{<<>>=
2+2
@
}
\caption{asdf}
\end{table}
If I replace the Sweave chunk with a random string or a table, the
compilation works fine. Any ideas what happens? I hit the same trouble
when running the code chunks through knitr.
2007 Aug 21
0
brew 1.0-1
brew implements a templating framework for mixing text and R code for
report generation. brew template syntax is similar to PHP, Ruby's erb
module, Java Server Pages, and Python's psp module.
brew is written in R with no package dependencies, and it's not just for
the web. It can be used as an alternative to Sweave in a limited
context. See the brew-test-1.brew file in the
2009 Aug 20
4
expanding 1:12 months to Jan:Dec
Dear R users
I would like to do some spreadsheet style expansion of dates. For
example, I would need to obtain a vector of months. I approached in an
obviously wrong way:
> paste(01:12)
[1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12"
> as.Date(paste(01:12),
2013 Apr 15
6
how to transform string to "Camel Case"?
Dear all,
Given the following vector:
> (z <- c('R project', 'hello world', 'something Else'))
[1] "R project" "hello world" "something Else"
I know how to obtain all capitals or all lower case letters:
> tolower(z)
[1] "r project" "hello world" "something else"
> toupper(z)
[1] "R
2010 Aug 24
5
Sweave.sty
Does anyone know where I can download the latest version of Sweave.sty? I have looked all over the site http://www.stat.umn.edu/~charlie/Sweave/ with no luck.
2010 Aug 04
3
retrieve name of an object?
Dear all
Is there an easier way to retrieve the name of an object? For example,
> tmp <- 1:10
> as.character(quote(tmp))
[1] "tmp"
> as.character(quote(mtcars$cyl))
[1] "$" "mtcars" "cyl"
> as.character(quote(mtcars$cyl))[3]
[1] "cyl"
The last call more than anything seems a hack. Is there a better way?
Thank you
Liviu
2010 Dec 06
10
R crashes when making graphs
hi,
i am running R with JGR and Deducer under Ubuntu Mint Lucid. since i updated to R 2.12 i can no longer make graphs - R just crashes.
the full error report was posted to launchpad (https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/675905) without any success so far.
anyone with a similar problem or helpful suggestions?
thanks!
kat
2007 Oct 17
3
Trouble with R CMD INSTALL
Why does R CMD INSTALL work for some packages (e.g., lme4) but not
others (e.g., nlme)?
Thanks,
Gang
2010 Jun 25
6
Export Results
Hi R users,
How can I automatically export results and graphs to a file?
Thanks in advance
Pedro Mota Veiga
--
View this message in context: http://r.789695.n4.nabble.com/Export-Results-tp2268622p2268622.html
Sent from the R help mailing list archive at Nabble.com.
2009 Aug 20
1
globally set digits=3 in Sweave
Dear all
I would like to globally set
options(digits = 4)
in an Sweave document. I've read this thread [1] where it was
suggested to set the above option and pass every printed number
through format(). Aanother way to do so would be to round(expr, 4).
However I would like to set the digits option once per document so
that every number printed respects it, without the need to pass every
time
2010 Jan 07
3
Finally, the first R spam!
Hi R friends and users,
Just for fun (or concern): I received a R spam mail. Perhaps the first
in history...
Subject: R Courses and Consulting
From: R Training33 <rtrainers33a at gmail.com>
> R Courses and Consulting
> Dear Sir,
>
> We are working on our 2010 R training schedule and would like to know
> if you are interested in attending R courses this year.
>
2010 May 11
5
Regressions with fixed-effect in R
Hi there,
Maybe people who know both R and econometrics will be able to answer
my questions.
I want to run panel regressions in R with fixed-effect. I know two
ways to do it.
First, I can include factor(grouping_variable) in my regression equation.
Second, I plan to subtract group mean from my variables and run OLS
panel regression with function lm().
I plan to do it with the second way because
2011 Mar 06
4
sorting & subsetting a data.frame
Dear all
This may be obvious, but I cannot get it working. I'm trying to subset
& sort a data frame in one go.
x <- iris
x$Species1 <- as.character(x$Species)
##subsetting alone works fine
with(x, x[Sepal.Length==6.7,])
##sorting alone works fine
with(x, x[order(Sepal.Length, rev(sort(Species1))),])
##gets subsetted, but not sorted as expected
with(x, x[(Sepal.Length==6.7) &
2012 May 05
3
alarm() doesn't beep
Dear all
I'd like to make a beeping sound in R, but alarm() doesn't beep? I
checked ?alarm but I couldn't find any pointers to system
configuration. Any ideas?
Regards
Liviu
> sessionInfo()
R version 2.14.2 (2012-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5]
2012 Jul 10
3
fill 0-row data.frame with 1 line of NAs
Dear all
Is there a simpler method to achieve the following: When I obtain an
empty data.frame after subsetting, I need for it to contain one line
of NAs. Here's a dummy example:
> (.xb <- iris[ iris$Species=='zz', ])
[1] Sepal.Length Sepal.Width Petal.Length Petal.Width Species
<0 rows> (or 0-length row.names)
> dim(.xb)
[1] 0 5
> (.xa <-
2010 Oct 09
4
same random numbers in different sessions
Dear all
I'm using Xubuntu Lucid and I keep getting the same random numbers
whenever I start a new session of R. For example, I keep getting
> sample(1:1000, 1)
[1] 87
or
> rnorm(1:10)
[1] -1.3618103 0.4241701 1.0720076 0.2208145 -0.5375314 -0.4846588
[7] 0.7576768 0.6527407 -0.6868786 0.8718527
I expected that some set.seed() instruction woudl be present in a
config file in
2008 Oct 11
6
Sweave-LaTEX question
Hi:
I am working on a publication and I have heard about LaTEX but I haven't actually tried to learn about it until today. I've found a few examples but I can't actually make them work properly. I have a couple of questions:
Does LATEX have to be installed on your computer? How does the xtable package and Sweave work together? How can I make the code below create a table as pdf file?
2009 Aug 26
2
faulty formatting of toLatex(sessionInfo())
Dear all
I am writing an Sweave document and have encountered formatting issues
with the "locale" part of toLatex(sessionInfo()). The fact that there
is no spaces between the various "locale" variables means that LaTeX
cannot easily find an appropriate place to break the lines, and some
will get printed off screen.
Below is the text output, and this .pdf document [1] shows the