similar to: Sweave doesn't work

Displaying 20 results from an estimated 1000 matches similar to: "Sweave doesn't work"

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.
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
2011 Aug 19
2
R and Sweave
Hi everybody. I'm trying to use R with Sweave but I have a problem perhaps with the directory path of sweave in R. The windows path is this: C:\Program Files (x86)\R\R-2.9.2\share\texmf\Sweave When I run the latex file with R, the program works well, without any errors, but when I create the pdf file, the Scode doesn't work. I think the problem is about the path. Can anybody suggest to
2009 Jan 13
1
PCA loadings differ vastly!
hi, I have two questions: #first (SPSS vs. R): I just compared the output of different PCA routines in R (pca, prcomp, princomp) with results from SPSS. the loadings of the variables differ vastly! in SPSS the variables load constantly higher than in R. I made sure that both progr. use the correlation matrix as basis. I found the same problem with rotated values (varimax rotation and rtex=T
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 <-
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
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:
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
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
2006 May 05
2
convert HTML to LaTeX or text
Hi all, I have a RoR app which can output a report in HTML back to the web browser, or (preferably) in PDF using the RTex plugin. I have a number of text fields which are stored as HTML, and am looking for a good way to convert them to something LaTeX-compatible, or plain text if that''s the last resort. I''ve seen a number of html2tex-type converters out there, but they are by
2006 Apr 02
1
How to count number of pages in a PDF?
Does any know a simple way to count the number of pages in a PDF file? I''m using teh RTEX plugin to generate a PDF via pdflatex with a defined start page number. I want to determine the final page number so I can start the next PDF in sequence. Thanks in advance for your help! -cal
2005 Jan 16
1
running Sweave from Windows XP Explorer
I'd like to create a suitable batch file or shortcut so that I can run Sweave on a .Rnw or .Rtex file simply by clicking on the file from Windows Explorer in Windows XP (as I do with latex, bibtex etc). This looks tantalisingly possible using R CMD BATCH or Rterm possibly in combination with a .bat file. Has anyone succeeded is setting it up and would give me a pointer? Thanks Gordon
2008 Jul 27
2
Colors in Sweave
Hi list, I was using Sweave and was wondering if anyone has had any luck changing the font colors of the code chunks. For instance, in my .Rnw preample I tried including: === \usepackage[usenames]{colors} \definecolor{darkred}{rgb}{0.545,0,0} \definecolor{midnightblue}{rgb}{0.098,0.098,0.439} \DefineVerbatimEnvironment{Sinput}{Verbatim}{fontshape=sl,formatcom={\color{midnightblue}}}