Displaying 20 results from an estimated 200 matches similar to: "Sweave absolute path versus relative path"
2007 Apr 26
2
SweaveInput and absolute paths
Hi,
Is there a way to turn off the automatic inclusion of "./" at the
beginning of a path specified in an \SweaveInput{} instruction?
I'd like to create some reusable "template modules" of Sweave code and
put them in a standard directory like
/Resources/Affymetrix
Then the corresponding file that uses one of these would include a
command like
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
2010 Oct 05
3
SweaveInput + keep.source = TRUE trouble
Dear all,
I have trouble with R-beta sweaving files that include definitions with
\SweaveInput in combination with keep.source = TRUE
Symptom:
SInput is taken from too far down the input file (the shift is the number of
lines of the included file). Is that known? Searching didn't turn up anything,
yet I think there are more people than just me using keep.source.
Example:
$
2014 Nov 03
0
Pkg creation: Sweave: multiple files vignette: Error in R CMD check
Hello R-developers!
I am creating a package (using devtools and RStudio) and I would like to split
my vignette into multiple Rnw-files.
As an example I tried the code from:
https://support.rstudio.com/hc/en-us/articles/200486298
(--> Working with multiple Rnw files)
The Rnw-files work fine with "Complie pdf" in RStudio as well as with
Sweave("Master.Rnw").
But, if I try
2013 Jan 09
3
Sweave, Texshop, and sync with included Rnw file
Hello everyone.
I am in the process of writing a book in Latex with Texshop, on Mac.
This book contains a lot of R code, hence the need to use Sweave.
I was able to compile Rnw files, and to sync back and forth from the pdf to the source Rnw.
My problem now is that the book is divided in Chapters, and every chapter is in its own Rnw file.
I can compile them from the main one (book.Rnw) using the
2005 May 17
1
Sweave and paths
Is there some way to encourage \SweaveInput{foo} to find foo in a
subdirectory of a file tree? Something along the lines of the
behavior of list.files(<stuff>, recursive=TRUE). This would be very
helpful at calling small modular files, such as solution sets and the
like.
I couldn't see anything in the documentation, and I looked in the
source code, but it seems that
2013 Jul 23
0
percent correctly predicted (PCP) zeros for hurdle model
Hello all,
I am using the hurdle model for fitting my count data using the pscl package
which is working fine. However, I am stuck with the problem of calculating
the percent correctly predicted (PCP) zeros for hurdle model. The method I
am trying to use to achieve this is 'hitmiss' in the pscl package (ref:
http://www.inside-r.org/packages/cran/pscl/docs/hitmiss).
When I do:
>
2009 May 10
2
Vignettes with missing or empty \VignetteIndexEntry:
Hi,
I have a problem when checking the package 'probdistr' (on probability
distributions).
I got this warning
* checking index information ... WARNING
Vignettes with missing or empty \VignetteIndexEntry:
[1] "probdistr-chi" "probdistr-contextra" "probdistr-discrete"
[4] "probdistr-discrextra" "probdistr-exp"
2012 Jan 16
3
Using Sweave to generate multiple documents
Hello,
I tried looking for a Sweave-specific list but didn't find one, nor did I find an answer via google, so will send this question to the general R list. Please feel free to point me in the right direction.
I am using Sweave and would like to have a single .Rnw document that generates 1) a summary report, 2) a full report, 3) slides for a talk. I think my material lends itself to have
2010 Aug 10
0
[BUGS] [R-BUGS] error while plotting
Trevor,
Thanks for your reply.
That doesnot help
Any other suggestions?
Anamika
On Tue, Aug 10, 2010 at 11:58 AM, Trevor Davies <tdavies@mathstat.dal.ca>wrote:
> I think you need to load is R2WinBUGS again.
>
> require(R2WinBUGS)
>
> Trevor
>
> > Hi All:
> >
> > I am getting an error while trying to plot in R2Winbugs
> >
> > *Error in
2005 Feb 23
4
Sweave and \input or \include LaTeX commands
Hello!
I was just wondering if Sweave can work with \input or \include
LaTeX commands. So, is it aware of such a possible hierarchy in
documents. I would test that, but I don't have such a report
available at the moment.
I thought of that when I was writting shell script for Sweave
from command line and I have solved that part there.
--
Lep pozdrav / With regards,
Gregor GORJANC
2012 Apr 26
1
Sweave: Avoiding recompilation of figures
Hello everybody out there using Sweave,
There are some complicated SQL queries and laborous calculations against large data included as R code chunks using Sweave in my LaTeX document.
These code chunks create graphs that do not change most of the time, but they are of course recompiled every time I run Sweave on my file for update of minor changes to the LaTeX text.
Is there an option
2005 May 18
0
SV: Sweave and paths
Don't think it is possible. To overcome the problem I wrote a small R-program which replaced foo with foo\bar in the Sweave file. Clumpsy, sure, but...
Best
S??ren
________________________________
Fra: r-help-bounces at stat.math.ethz.ch p?? vegne af Bill Rising
Sendt: ti 17-05-2005 20:31
Til: rhelp
Emne: [R] Sweave and paths
Is there some way to encourage \SweaveInput{foo} to find foo
2008 Jul 02
0
Sweave / Latex per-chapter output
Hello to all who have helped me on this topic,
first I need to apologize for apparently replying only now... In fact
I use the "Pan" Newsreader to read the list, and I posted a reply to
the thread a week after your suggestions through Pan, and I only now
realised that the posting never arrived on the list although Pan gave
me no error message at all!
So, let me try again using the good
2001 Apr 18
1
install 2.2.0 ssl troubles
Hello!
Here are my specs.
Slackware 7.1
OpenSSL 0.9.6a
Samba 2.2.0 downloaded today
It claims that it cant find ssl.h
Here is my configure line:
./configure --prefix=/usr --with-ssl
--with-sslinc=/usr/local/ssl/include/openssl --with-smbmount
--enable-debug
I verified that ssl.h is in /usr/local/ssl/include/openssl
Any ideas?
Thank you
--
Terry Davis
Systems Administrator
BirdDog
2010 Dec 21
1
Bug report 14459 -- procedure for handling follow-up issues
Although the specific behaviour that was reported has been fixed, bugs
remain in Sweave's processing of comment lines when keep.source=TRUE
This is in some senses a follow-up from earlier bugs. Hence the query --
what is the preferred procedure, to submit a new bug report? (Another option
might be to add a comment to the web page for bug 14459.)
Is there now a preference to submit via
2010 Dec 16
0
R 2.12.1 is released
I've rolled up R-2.12.1.tar.gz a short while ago. This is an update release, which fixes a number of mostly minor issues, and some consolidation within the area of reference classes. The most serious issues were probably that we were not catching misspelled NAMESPACE directives and not catching accidentally unnamed switch() arguments (notice that fixing either will likely uncover errors in
2010 Dec 16
0
R 2.12.1 is released
I've rolled up R-2.12.1.tar.gz a short while ago. This is an update release, which fixes a number of mostly minor issues, and some consolidation within the area of reference classes. The most serious issues were probably that we were not catching misspelled NAMESPACE directives and not catching accidentally unnamed switch() arguments (notice that fixing either will likely uncover errors in
2006 Oct 14
2
Sweave, R and complex latex projects
Hello all,
I've been able to use R very successfully to run simple statistics and
generate the plots I require.
I've been evaluating Sweave, and have hit upon a small problem that I
don't seem to be able to workaround. Sweave runs very well for single
file latex documents, but I have a complex thesis made up of several
parts and chapters. These are arranged with a master latex file
2002 Jun 11
5
DNS Proxy - WINS problem - please help
Here is my scenario when a client wants to resolve a name on my local
network:
CLIENT --> VPN --> SAMBA --> DNS
The client is set up like so:
DNS1 = ISP DNS1 (204.26.64.1)
DNS2 = ISP DNS2 (204.26.80.3)
WINS1 = my samba1 (10.10.1.5)
WINS2 = my samba2 (10.10.1.8)
This all _seemed_ to have worked 3 days ago for roughly 6 months but
stopped suddenly without me doing anything.
When the