Displaying 20 results from an estimated 600 matches similar to: "SweaveListingUtils question"
2009 Sep 03
1
Sweavelistingutil: Encoding problems
Hello,
I am not sure whether this is a bug or lack of R experience.
However, I am using your Sweavelistingutil package, which is very
nice. Obviously I use it to create LaTeX files. These are encoded in
utf8.
However, when I use the Sweavelistingutil is uses some funky
character for "`" and "'" that is not recognized.
Here is an example from my tex-file:
,----
|
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.
2011 Mar 07
2
Sweave with scan()-ed data
In an Sweave slide, I want to use sem::read.moments() and
sem::specify.model(), which work
by using scan() to read the following lines, up to the first blank
line. However, Sweave
throws an error:
> Sweave("sem-thurstone.Rnw")
Writing to file sem-thurstone.tex
Processing code chunks ...
1 : term hide (label=arrests-setup)
2 : echo term hide (label=thurstone-data)
Error:
2012 Nov 01
1
How to nicely display R code with the LaTeX package 'listings'?
Dear expeRts,
What's a 'good' (nice-looking, easy-to-read) setup for the LaTeX package
'listings' to display R code?
The two versions below are partly inspired by the settings of the package
SweaveListingUtils and
http://r.789695.n4.nabble.com/R-How-to-format-R-code-in-LaTex-documents-td816055.html
Any suggestions, comments, or improvements are welcome.
Cheers,
Marius
###
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
2009 Nov 23
0
new version of distr-family of packages
The new version 2.2 of our distr-family of packages has now been
available on CRAN for several days. As there were many changes we will
only sketch the most important ones here. For more details see the
corresponding NEWS files (e.g. news(package = "distr") or using function
NEWS from package startupmsg i.e. NEWS("distr")).
First of all a new package distrEllipse was added
2009 Nov 23
0
new version of distr-family of packages
The new version 2.2 of our distr-family of packages has now been
available on CRAN for several days. As there were many changes we will
only sketch the most important ones here. For more details see the
corresponding NEWS files (e.g. news(package = "distr") or using function
NEWS from package startupmsg i.e. NEWS("distr")).
First of all a new package distrEllipse was added
2012 Sep 05
2
Recoding categorical gender variable into numeric factors
I currently have a data set in which gender is inputed as "Male" and "Female"
, and I'm trying to convert this into "1" and "0".
I found a website which reccomended using two commands:
data$scode[data$sex=="M"] <- "1"
data$scode[data$sex=="F"] <- "2"
to convert to numbers, and:
data$scode <-
2011 Aug 21
3
Sweave doesn't work
Hi R users.
I've got a problem in producing the pdf file from Latex with R code. When I
run the code Sweave("example.Rtex") in R it seems working, but when I run
the Latex file it doesn't. The code error shown to me is below:
*Runaway argument?
{echo=FALSE}
data<- read.csv("C:\\Users\\Daniele\\Desktop\\dati\\dati_england
! File ended while scanning use of \FV at
1999 Sep 18
1
Transfering large files
Hello!
I've been seeing some weird problems with transfering large files from a
Samba (2.0.4a[1]) server to Windows clients. Sometimes (but not always) the
Windows client will stop copying the file after a few megs and claim that
the share is no longer available (it is, of course).
This used to happen *a lot* with the default read/write buffer of 8k. The
buffer is now 250 K, which has almost
2007 Sep 01
1
Sweave rendering of simple character
Hi,
When I compile the construction
\begin{Scode}{eval=FALSE}
?HSP
\end{Scode}
with Sweave and latex, it outputs in the pdf as,
> `?` (HSP)
which is not incorrect but a bit more formal than I wanted
for demonstrating the use of the help shortcut.
I would like the output to look like,
> ?HSP
but I can't seem to make this work.
I have also tried the results=verbatim argument.
2012 Sep 18
2
problem with vignettes when S4 classes in packages overlap
( A similar problem is also reported by Sebastian P. Luque with
library(maptools)
library(trip)
in the vignette as below ).
I am writing a vignette which loads RMySQL and RPostgreSQL. This
produces the warning:
Loading required package: DBI
Warning in .simpleDuplicateClass(def, prev) :
A specification for class ?dbObjectId? in package ?RPostgreSQL? seems
equivalent to one from package
2010 Feb 11
1
Sweave, lty = 3 line incorect in pdf output
I'm having a problem with dotted lines (lty = 3) in the pdf output
in documents generated with Sweave. In the displayed pdf, the
dotted line does not show up and in the printed output, it is
there but does not seem to respect the lwd argument, for example, it
is very faint despite using lwd = 3. The dotted line is correct
in a quartz window and if I save the Quartz window to a pdf
and
2004 Oct 28
1
read.csv(stdin(),...) with sweave
hello,
i would like to read in a small amount of csv data directly from a
sweave-enabled latex document. i tried
\begin{Scode}{fig=FALSE,echo=TRUE}
timeval <- read.csv(stdin(),nrows=2)
t1,t2,t3,t4
24.23,26.79,23.47,23.97
\end{Scode}
but apparently the stdin() approach doesnt't work as I get
Writing to file test.tex
Processing code chunks ...
1 : echo term verbatim
Error: chunk 1
2004 Jun 20
2
customflags considered a folder?
Hello,
i just switched from courier-imap to dovecot on a machine. The transition was
painless except for one issue - when using the "Check mail" feature of kmail,
one gets the message:
"Unable to get information about folder customflags. The server replied:
internal error..."
So it looks like the server isn't properly hiding the .customflags file for
some reason. I
2004 Sep 06
2
Sweave echoing comments (again)
Hello,
I try to document some R scripts for my collegues and observed the
problem, that Sweave strips comment lines away.
As a small example I write in an Rtex file:
\begin{Scode}
## a small example
test() # line comment
\end{Scode}
... the .tex file generated by Sweave only contains:
\begin{Schunk}
\begin{Sinput}
test()
\end{Sinput}
\end{Schunk}
... and all the comments are lost.
2004 Sep 06
2
Sweave echoing comments (again)
Hello,
I try to document some R scripts for my collegues and observed the
problem, that Sweave strips comment lines away.
As a small example I write in an Rtex file:
\begin{Scode}
## a small example
test() # line comment
\end{Scode}
... the .tex file generated by Sweave only contains:
\begin{Schunk}
\begin{Sinput}
test()
\end{Sinput}
\end{Schunk}
... and all the comments are lost.
2002 Jun 10
1
Very strange problem with profiles
Hello,
I have just had a client of ours encounter an extremely weird problem with
roaming profiles. Wheather or not it's samba related I do not know, but I
believe it could be.
The problem is that the person in question is MOVING files from one
location to another inside "My Documents" while logged in using a
domain account WHILE DISCONNECTED from the network. He also changes a few
2009 Nov 12
1
Rearranging long tables, Sweave, xtable, LaTeX
Dear R-users,
consider the two following outputs, ## 1 and ## 2
\begin{Scode}{Setup, echo = FALSE, print = FALSE, eval = TRUE}
with(expand.grid(Fact1 = 1:3, Fact2 = 1:40), table(Fact1,
Fact2)) ## 1
xtable(with(expand.grid(Fact1 = 1:3, Fact2 = 1:40), table(Fact1,
Fact2))) ## 2
\end{Scode}
The first line
with(expand.grid(Fact1 = 1:3, Fact2 = 1:40), table(Fact1, Fact2))
2001 Dec 11
2
Samba suddenly going nuts!
Hello,
we're running 2.2.1a on a production server. Lately, it's been giving
us troubles. Monday mordning, this moring, and 2 times more during
today, samba stopped responding to all requests from Windows (2000)
clients. This has happened once before a week ago, and once several
weeks ago. Today it seems to be getting much worse.
If left un-attended the system will eventually run out of