Re: [R] basic sweave question
Dear Ligges, *Well, * * * *1st, you should find the *Sweave.sty file, I am sure you can. 2nd, in the Latex configure menu, adding the path containing the Sweave.sty That will be OK. Best Wishes Guanhao Liu On Fri, Mar 22, 2013 at 6:56 PM, Uwe Ligges lig...@statistik.tu-dortmund.de wrote: I typically run R CMD Sweave which resolves issues with style files in directories unknown to your LaTeX distribution. Best, Uwe Ligges On 21.03.2013 18:44, lgh0504 wrote: The pdflatex is the an excutable programe located in your MiKTexâ bin folder, I guess you have not add your MikTex bin folder into your Windows PATH environment On Thu, Mar 14, 2013 at 12:55 AM, susieboyce [via R] ml-node+s789695n4661220h61@n4.**nabble.comml-node%2bs789695n4661220...@n4.nabble.com wrote: I have located my Sweave.sty in my R program files and I've tried copying and pasting this into many folders in the C/.../MiKTeX/tex/latex environment, including making a new folder called 'Sweave' and storing in here and still my .tex file gives me an error when I try to compile it. What is this pdflatex? Is it an R command? If so, what package is it in? Where does this go? In the original .rnw file, do you type this into R or somewhere else?: pdflatex --include-directory=C:\**Program Files\R\R-2.14.0\share\texmf\**tex\latex your_tex.tex -- If you reply to this email, your message will be added to the discussion below: http://r.789695.n4.nabble.com/**basic-sweave-question-** tp876734p4661220.htmlhttp://r.789695.n4.nabble.com/basic-sweave-question-tp876734p4661220.html To unsubscribe from basic sweave question, click here http://r.789695.n4.**nabble.com/template/**NamlServlet.jtp?macro=** unsubscribe_by_codenode=**876734code=**bGdoMDUwNEBnbWFpbC5jb218ODc2Nz* *M0fC0xODczMTIwODc1http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=876734code=bGdoMDUwNEBnbWFpbC5jb218ODc2NzM0fC0xODczMTIwODc1 . NAMLhttp://r.789695.n4.**nabble.com/template/** NamlServlet.jtp?macro=macro_**viewerid=instant_html%** 21nabble%3Aemail.namlbase=**nabble.naml.namespaces.** BasicNamespace-nabble.view.**web.template.NabbleNamespace-** nabble.view.web.template.**NodeNamespacebreadcrumbs=** notify_subscribers%21nabble%**3Aemail.naml-instant_emails%** 21nabble%3Aemail.naml-send_**instant_email%21nabble%**3Aemail.namlhttp://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://r.789695.n4.nabble.com/** basic-sweave-question-**tp876734p4662100.htmlhttp://r.789695.n4.nabble.com/basic-sweave-question-tp876734p4662100.html Sent from the R help mailing list archive at Nabble.com. [[alternative HTML version deleted]] __** R-help@r-project.org mailing list https://stat.ethz.ch/mailman/**listinfo/r-helphttps://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/** posting-guide.html http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] basic sweave question
I typically run R CMD Sweave which resolves issues with style files in directories unknown to your LaTeX distribution. Best, Uwe Ligges On 21.03.2013 18:44, lgh0504 wrote: The pdflatex is the an excutable programe located in your MiKTex‘ bin folder, I guess you have not add your MikTex bin folder into your Windows PATH environment On Thu, Mar 14, 2013 at 12:55 AM, susieboyce [via R] ml-node+s789695n4661220...@n4.nabble.com wrote: I have located my Sweave.sty in my R program files and I've tried copying and pasting this into many folders in the C/.../MiKTeX/tex/latex environment, including making a new folder called 'Sweave' and storing in here and still my .tex file gives me an error when I try to compile it. What is this pdflatex? Is it an R command? If so, what package is it in? Where does this go? In the original .rnw file, do you type this into R or somewhere else?: pdflatex --include-directory=C:\Program Files\R\R-2.14.0\share\texmf\tex\latex your_tex.tex -- If you reply to this email, your message will be added to the discussion below: http://r.789695.n4.nabble.com/basic-sweave-question-tp876734p4661220.html To unsubscribe from basic sweave question, click herehttp://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=876734code=bGdoMDUwNEBnbWFpbC5jb218ODc2NzM0fC0xODczMTIwODc1 . NAMLhttp://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://r.789695.n4.nabble.com/basic-sweave-question-tp876734p4662100.html Sent from the R help mailing list archive at Nabble.com. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] basic sweave question
you are welcome! On Thu, Mar 14, 2013 at 6:01 PM, susieboyce [via R] ml-node+s789695n4661296...@n4.nabble.com wrote: Thank you for your reply. I have found the pdflatex file. I was able to solve my 'Sweave.sty not found' error by coping the Sweave.sty file and pasting it into the working directory for the LaTeX file. -- If you reply to this email, your message will be added to the discussion below: http://r.789695.n4.nabble.com/basic-sweave-question-tp876734p4661296.html To unsubscribe from basic sweave question, click herehttp://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=876734code=bGdoMDUwNEBnbWFpbC5jb218ODc2NzM0fC0xODczMTIwODc1 . NAMLhttp://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://r.789695.n4.nabble.com/basic-sweave-question-tp876734p4662102.html Sent from the R help mailing list archive at Nabble.com. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] basic sweave question
The pdflatex is the an excutable programe located in your MiKTexâ bin folder, I guess you have not add your MikTex bin folder into your Windows PATH environment On Thu, Mar 14, 2013 at 12:55 AM, susieboyce [via R] ml-node+s789695n4661220...@n4.nabble.com wrote: I have located my Sweave.sty in my R program files and I've tried copying and pasting this into many folders in the C/.../MiKTeX/tex/latex environment, including making a new folder called 'Sweave' and storing in here and still my .tex file gives me an error when I try to compile it. What is this pdflatex? Is it an R command? If so, what package is it in? Where does this go? In the original .rnw file, do you type this into R or somewhere else?: pdflatex --include-directory=C:\Program Files\R\R-2.14.0\share\texmf\tex\latex your_tex.tex -- If you reply to this email, your message will be added to the discussion below: http://r.789695.n4.nabble.com/basic-sweave-question-tp876734p4661220.html To unsubscribe from basic sweave question, click herehttp://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=876734code=bGdoMDUwNEBnbWFpbC5jb218ODc2NzM0fC0xODczMTIwODc1 . NAMLhttp://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://r.789695.n4.nabble.com/basic-sweave-question-tp876734p4662100.html Sent from the R help mailing list archive at Nabble.com. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Basic Sweave
Hi, I have this basic R code that I would like to rewrite into Sweave code. Ideally I would like Latex to display both the code and the statistics. R and Sweave is completely new to me so I would really appreciate some help. read.table(df1.txt, header=TRUE, sep=;, na.strings=c(na,.), skip=1, dec=0,nrows=1000) df1.rda-read.table(df1.txt, header=TRUE, sep=;, na.strings=c(na,.), skip=1, dec=0,nrows=1000) str(df1.rda) summary(df1.rda) mean(df1.rda, na.rm=TRUE) sd(df1.rda, na.rm=TRUE) attach(df1.rda) plot(wage,school) pdf(file = df1.pdf, paper = A4) -- This message was sent on behalf of alexander.weids...@gmail.com at openSubscriber.com http://www.opensubscriber.com/messages/r-help@r-project.org/topic.html __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Basic Sweave
http://www.stat.uni-muenchen.de/~leisch/Sweave/Sweave-manual.pdf alexander.weids...@gmail.com wrote: Hi, I have this basic R code that I would like to rewrite into Sweave code. Ideally I would like Latex to display both the code and the statistics. R and Sweave is completely new to me so I would really appreciate some help. read.table(df1.txt, header=TRUE, sep=;, na.strings=c(na,.), skip=1, dec=0,nrows=1000) df1.rda-read.table(df1.txt, header=TRUE, sep=;, na.strings=c(na,.), skip=1, dec=0,nrows=1000) str(df1.rda) summary(df1.rda) mean(df1.rda, na.rm=TRUE) sd(df1.rda, na.rm=TRUE) attach(df1.rda) plot(wage,school) pdf(file = df1.pdf, paper = A4) -- This message was sent on behalf of alexander.weids...@gmail.com at openSubscriber.com http://www.opensubscriber.com/messages/r-help@r-project.org/topic.html __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- James W. MacDonald, M.S. Biostatistician Douglas Lab University of Michigan Department of Human Genetics 5912 Buhl 1241 E. Catherine St. Ann Arbor MI 48109-5618 734-615-7826 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] basic sweave question
This doesn't address your original question, but you might want to look at using the Sweash.sh script available from http://lib.stat.cmu.edu/R/CRAN/contrib/extra/scripts/. Download the file, move it to /usr/local/bin (e.g., mv Sweave.sh /usr/local/bin) and make sure it's executable (chmod +x /usr/local/bin/Sweave.sh). Now you can create a .pdf from your .Rnw file in a single run, using Sweave.sh -ld PathToFile.Rnw. -Ista From: markle...@verizon.net To: r-h...@stat.math.ethz.ch Date: Mon, 12 Jan 2009 21:59:17 -0600 (CST) Subject: [R] basic sweave question I am trying to learn the basics of Sweave so I read some things and a friend gave me his Rnw file to play with. I am able to do R CMD Sweave mark-example.Rnw. That works. But, then when I do latex mark-example.tex, I get the message below. I looked in the archives and Martin Morgan mentioned something in 2004 in terms of making sure that latex is looking at where Sweave.sty is but I am unsure of how to do that. In fact, I don't even know where Sweave.sty is. Thanks for your help. ! LaTeX Error: File `Sweave.sty' not found. the command \usepackage{Sweave} is in my tex file. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] basic sweave question
I am trying to learn the basics of Sweave so I read some things and a friend gave me his Rnw file to play with. I am able to do R CMD Sweave mark-example.Rnw. That works. But, then when I do latex mark-example.tex, I get the message below. I looked in the archives and Martin Morgan mentioned something in 2004 in terms of making sure that latex is looking at where Sweave.sty is but I am unsure of how to do that. In fact, I don't even know where Sweave.sty is. Thanks for your help. ! LaTeX Error: File `Sweave.sty' not found. the command \usepackage{Sweave} is in my tex file. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] basic sweave question
In my original message, I forot to include my Session Info so it is below. I apologize for that. sessionInfo() R version 2.8.0 (2008-10-20) i386-redhat-linux-gnu locale: LC_CTYPE=en_US.utf8;LC_NUMERIC=C;LC_TIME=en_US.utf8;LC_COLLATE=en_US.utf8;LC_MONETARY=C;LC_MESSAGES=en_US.utf8;LC_PAPER=en_US.utf8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.utf8;LC_IDENTIFICATION=C On Mon, Jan 12, 2009 at 10:59 PM, markle...@verizon.net wrote: I am trying to learn the basics of Sweave so I read some things and a friend gave me his Rnw file to play with. I am able to do R CMD Sweave mark-example.Rnw. That works. But, then when I do latex mark-example.tex, I get the message below. I looked in the archives and Martin Morgan mentioned something in 2004 in terms of making sure that latex is looking at where Sweave.sty is but I am unsure of how to do that. In fact, I don't even know where Sweave.sty is. Thanks for your help. ! LaTeX Error: File `Sweave.sty' not found. the command \usepackage{Sweave} is in my tex file. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] basic sweave question
Sweave.sty is in the directory file.path(R.home(), 'share', 'texmf') Regards, Yihui -- Yihui Xie xieyi...@gmail.com Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086 Mobile: +86-15810805877 Homepage: http://www.yihui.name School of Statistics, Room 1037, Mingde Main Building, Renmin University of China, Beijing, 100872, China On Tue, Jan 13, 2009 at 11:59 AM, markle...@verizon.net wrote: I am trying to learn the basics of Sweave so I read some things and a friend gave me his Rnw file to play with. I am able to do R CMD Sweave mark-example.Rnw. That works. But, then when I do latex mark-example.tex, I get the message below. I looked in the archives and Martin Morgan mentioned something in 2004 in terms of making sure that latex is looking at where Sweave.sty is but I am unsure of how to do that. In fact, I don't even know where Sweave.sty is. Thanks for your help. ! LaTeX Error: File `Sweave.sty' not found. the command \usepackage{Sweave} is in my tex file. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] basic sweave question
Martin Morgan kindly explained to me off-list that I need to use R CMD pdflatex mark-example.tex. That fixed my problem. On Mon, Jan 12, 2009 at 11:25 PM, markle...@verizon.net wrote: In my original message, I forot to include my Session Info so it is below. I apologize for that. sessionInfo() R version 2.8.0 (2008-10-20) i386-redhat-linux-gnu locale: LC_CTYPE=en_US.utf8;LC_NUMERIC=C;LC_TIME=en_US.utf8;LC_COLLATE=en_US.utf8;LC_MONETARY=C;LC_MESSAGES=en_US.utf8;LC_PAPER=en_US.utf8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.utf8;LC_IDENTIFICATION=C On Mon, Jan 12, 2009 at 10:59 PM, markle...@verizon.net wrote: I am trying to learn the basics of Sweave so I read some things and a friend gave me his Rnw file to play with. I am able to do R CMD Sweave mark-example.Rnw. That works. But, then when I do latex mark-example.tex, I get the message below. I looked in the archives and Martin Morgan mentioned something in 2004 in terms of making sure that latex is looking at where Sweave.sty is but I am unsure of how to do that. In fact, I don't even know where Sweave.sty is. Thanks for your help. ! LaTeX Error: File `Sweave.sty' not found. the command \usepackage{Sweave} is in my tex file. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.