Displaying 20 results from an estimated 2000 matches similar to: "Problem compiling Rnw file"
2012 Apr 17
3
Sweave problem after R update version
I would notice this error compiling a Sweave document after I updated R from version 2.14.2 to 2.15.0:
Error in driver$finish(drobj) : the output file 'MyDocument.tex' has disappeared
Calls: <Anonymous> -> do.call -> <Anonymous> -> <Anonymous>
Execution halted
Do you have any suggestion?
Regards
Riccardo
Sent from iPod
[[alternative HTML version deleted]]
2012 Feb 26
1
Sweave Print xtable
Hi, I'm working with Sweave and I have some trouble generating table. The R
code is:
print(xtable(myTable, caption ="", label="tab:myTab",
digits=3), tabular.environment='tabular', floating=TRUE,
caption.placement="top",size="\\scriptsize")
and the resulting LaTeX table is:
\begin{table}[ht]
\begin{center}
\caption{Principal
2012 Jan 17
1
Error predict with lda and cross validation
Hi, I use the lda function from the MASS package to classify some
samples according to some chemical properties. If I run lda without
cross validation all is ok but, if I run lda with cross validation,
the R consol say:
resLDA <- ldaRedOx <- lda(Activity ~ TRedOx[,1:6], CV=TRUE,
data=dfDataRedOx, subset=train)
predLDA <- predict(resLDA, newdata=dfDataRedOx[-train,])$class
>
2012 Jan 06
1
Sweave Chunks
Hi, is there a way to collapse/expand the Sweave chunks?
Best
Riccardo
2012 Feb 22
1
xtable prcomp
Hi, I need to export to LaTex the summary of a PCA. So:
myPCA <- prcomp(myDF)
mySummary <- summary(myPCA)
#
print(xtable(mySummary))
How can I export to LaTeX not all the summary but only the first nPCs??
Best
Riccardo
2012 Nov 07
2
Absolute path in gdata library
Dear list,
I have some .xls files that I need to read into R. I am able to do so
using read.xls in the gdata package, however the helper functions
sheetNames and sheetCount fail. This is the error:
Unable to open file '~/SharedFolder/MyData/mydata.xls'.
Warning: running command ''/usr/bin/perl'
'/usr/local/lib/R/site-library/gdata/perl/sheetCount.pl'
2011 Sep 26
1
SVM accuracy question
Hi, I'm working with support vector machine for the classification
purpose, and I have a problem about the accuracy of prediction.
I divided my data set in train (1/3 of enteire data set) and test (2/3
of data set) using the "sample" function. Each time I perform the svm
model I obtain different result, according with the result of the
"sample" function. I would like
2014 Mar 12
3
Anyone using trac on centos?
(Besides Paul, who's busy?)
I just need one question answered: I keep reading the docs, and given the
old traditional
/var/www
I get that part of trac should be installed in /var/www/trac/<myproj> (I
think); what I can't figure out is whether there is *anything* under the
document root, that is, /var/www/html/trac/<myproject>.
Anyone have a clue? Do I even need it as a
2008 Oct 13
2
rsync error: Error in socket IO(code 10) at clientserver.c(122)
Hi,
I am using cwrsync ver 2.1.5 over SSH to connect to
myproj@sourceforge.net and facing
some problems and not sure how to go about it. Below is the full text of the
result when I run the batch file. Was wondering if anyone has seen any
similar issue. Any thoughts/help is much appreciated.
------------------------------------------------
Tunnel: ssh
Command to run: "C:\Program
2010 Nov 29
1
Sweave choking on \\ in filename
Dear all,
Sweave chokes when using "\\" in the path to the Rnw file. Using "/"
works fine. The problem is that Eclipse+StatET uses "\\" in the
filename.
And example of the error, traceback and sessionInfo are given below.
Best regards,
Thierry
> Sweave("Q:\\BMK\\cursussen\\interne_opleiding\\deelnemerslijst.Rnw",
syntax="SweaveSyntaxNoweb")
2018 Mar 17
1
Local svn strategy for future LLVM release updates
We are starting a local LLVM backend project (using svn) and are looking for a mechanism to periodically update to later LLVM releases.
Certainly, this seems like it would be a relatively common use case and I expected a google search would reveal several options. However, I didn’t really find anything. Perhaps I’m not looking for the right keywords, if so please help me out and point me to any
2004 Oct 19
2
Sweave and Trellis in R 2.0.0patched (Windows)
I've been using the following code to plot using Sweave in version
1.9.1
library(RODBC)
library(lattice)
channel <-odbcConnectExcel("h:/water.xls")
data <- sqlQuery(channel,"select * from `Sheet1$` where Test = 'TOC' and
(Valve='5010-05' or Valve='8030-V26' or Valve='1180-08' or
Valve='5040-08')")
odbcClose(channel)
srt <-
2007 Aug 14
0
Using rspec in a non-rails project w/ autotest
Not sure if anyone needs this, but I have successfully been running
rspec/trunk with autotest for a few days now on a non-rails project.
The process is pretty simple:
1. Put rspec into vendor/plugins/rspec (on externals, or simply frozen)
2. Add autotest/discover.rb:
Autotest.add_discovery do
"myproj"
end
3. Add autotest/myproj.rb:
require File.dirname(__FILE__) +
2007 Jun 28
4
Sweave bug? when writing figures / deleting variable in chunk
I have found a quite strange (to me) behaviour in Sweave. It only
occurs in the following situation:
1. define a variable in one chunk
2. use it within a subsequent figure-generating chunk
3. delete it at the end of that same chunk
Then the Sweave driver chokes, not finding the variable name when
generating the figure
Example:
% document bug2.Rnw
\documentclass{article}
\usepackage{Sweave}
2005 Jul 06
4
Tempfile error
Dear List:
I am encountering an error that I can't resolve. I'm looping through
rows of a dataframe to generate individual tex files using Sweave. At
random points along the way, I encounter the following error
Error in file() : cannot find unused tempfile name
At which point Sweave halts. There isn't a logical pattern that I can
identify in terms of why the program stops at
2006 May 30
0
RadRails generators throwing ''No such file to load'' errors
if anyone has a minute maybe you can help with a newbish problem im
having with radrails v0.6.3.
If i try to generate a migration through the ''generators'' panel i get
error messages like this:
myProj> ruby script/generate migration newtest
myProj> -e:3:in `load'': No such file to load -- script/generate
(LoadError)
from -e:3
Although the generators work fine
2012 Sep 20
2
Sweave - if \Sexpr{} than \SweaveInput{"my.Rnw"}
Depending on an R computation I would like to include an Sweave documents
in the main Sweave document.
How can I do it?
So I was thinking .... to use Latex features :
\newif\ifpaper
\ifpaper
\SweaveInput{"my1.Rnw"}
\else
\SweaveInput{"my2.Rnw"}
\fi
But how do I set paper to true or false given an \Sexpr ??
\papertrue % or
\paperfalse
Any ideas?
cheers
--
Witold
2012 Aug 16
0
How to call patchDVI::SweavePDF on an .Rnw which is not the master file?
Dear expeRts,
I have a master file master.tex containing the preamble and which inputs (via
\input{chapter01}, \input{chapter02}, ...) chapters. The chapters are .Rnw
files. My goal is to use patchDVI::SweavePDF to compile the chapters (say,
chapter.Rnw) individually (each chapter starts with sourcing Sweave preliminary
settings).
The first problem is the following. If I execute (in the shell)
2012 Jan 24
1
Rnw file generated strange symbols in pdf file
Hello,
I found my Rnw file generated strange symbols in pdf file. For instance, on page 4 of the following file,
http://cran.r-project.org/web/packages/cts/vignettes/kf.pdf
you can see Belcher et~al on line 2, and Figure~1 on line 5. The symbol ~ should not appear in the pdf file although the symbol was in the original Rnw file (something like Figure~\ref{...}, section~\ref{...}). On page 1,
2013 Mar 13
0
sync+Rnw+TeXShop, again
Hi All --
I'm not sure this is the natural place for this question, but this list is
the place with the best Sweave-TeXShop-sync discussion so far.
My problem is that sync+Sweave+TeXShop works sometimes and not others, and
it's not consistent. The failure, in which sync from PDF opens the .tex
file instead of the .Rnw file, always comes after a code chunk.
If I start from a simple