Re: [R] knitr and tinytex

2023-04-28 Thread Steven Yen
Here’s what I found: Running the line commands install.packages("knitr") install.packages('tinytex') and interactively in RStudio: Tools->Install Packages -> … both work. Thank you! Steven from iPhone > On Apr 27, 2023, at 8:26 AM, Steven T. Yen wrote: > > Dear tinytex users > > I install

Re: [R] knitr and tinytex

2023-04-27 Thread Dr Eberhard Lisse
Open the script in RSTudio which should ask you whether you want to install (the) missing packages. el On 27/04/2023 02:26, Steven T. Yen wrote: > Dear tinytex users > > I install knitr and tinytex with the following line commands in RStudio > and it seems to work: > > install.packages("knitr

[R] knitr and tinytex

2023-04-26 Thread Steven T. Yen
Dear tinytex users I install knitr and tinytex with the following line commands in RStudio and it seems to work: install.packages("knitr") install.packages('tinytex') In the long past I was told to also run the following lines but now they do not seem to be needed. #update.packages(ask = FA

[R] knitr error for small text in pdf (bug)

2019-08-09 Thread Marc Girondot via R-help
Let try this minimal Rmarkdown file --- title: "cex in Rmarkdown" output: word_document --- ```{r} knitr::opts_chunk$set(dev='pdf') ``` ```{r} plot((0:160)/4, 0:160, type="n") text(x=20, y=70, labels =expression(alpha), cex=1e-7) ``` When knitr-red from Rstudi

Re: [R] knitr package error.

2016-07-26 Thread Jeff Newmiller
The mailing list allows very few types of attachments through to limit virus problems. You need to learn how to convey your problem as a reproducible sequence of R statements to get clear assistance here. [1] In this case, you may be confused between the interactive working environment (variab

[R] knitr package error.

2016-07-26 Thread Shadrack Magut
hello, someone help me sort out this error "## Error in summary(data): object ’analysis’ not found"" in using Knitr package in R. I imported the data into R studio but as soon as i use any code involving the data i imported in the Knitr environment within the latex document i encounter the above er

Re: [R] Knitr R - how to draw plot exactly at place of plot function call in output document?

2016-06-08 Thread Jeff Newmiller
I would echo the suggestion that the knitr Google group or stackexchange.com would be better than this list for this question. I also suggest that you look at http://yihui.name/knitr/demo/child/ and make a reproducible example if you decide to ask for more help in one of those forums. -- Sent

Re: [R] Knitr R - how to draw plot exactly at place of plot function call in output document?

2016-06-06 Thread Ulrik Stervbo
Hi Michu, it is not I problem I am familiar with, sorry. Maybe someone else on this list or at the knirt google group can help you further. Best, Ulrik On Mon, 6 Jun 2016 at 10:36 Michu Kom wrote: > Hello, > > HTML looks much nicer :) ... but still problem is not solved :/ still > having mixed

Re: [R] Knitr R - how to draw plot exactly at place of plot function call in output document?

2016-06-06 Thread Ulrik Stervbo
Hi Michu, What document type do you generate? I usually make just html and have no problems. If you create a pdf, please remember this is done through LaTeX and your problem could arise from the floats of LaTeX. For other output I have no idea. Hope this helps Ulrik Michu Kom schrieb am Mo., 6

[R] Knitr R - how to draw plot exactly at place of plot function call in output document?

2016-06-06 Thread Michu Kom
My R script run with Knitr generates a statistic summary of electrode pairs accompanied with plots. The problem is that knitr does not render plots in correct sections. In section for pair A knitr do not wait for plot and start to evaluate code for output summary for pair B. So in section B knitr p

[R] knitr error when using knit2wp: "need a login and password"

2015-08-30 Thread Abraham Mathew
I'm using the knitr package to post an .Rmd file to wordpress. First time I'm working this type of project and am having the following error/issue. Can anyone help identify the issue. Have done a number of Google searches but haven't seem similar issues. Also tried to use the newPost function for t

Re: [R] Knitr: setting echo = FALSE globally [RESOLVED]

2015-07-21 Thread Rich Shepard
, it makes sense. So it should work if echo=FALSE is in a chunk _or_ in the ERT box. Needing to be in both is not expected. Glad it's working. R +knitr does save a lot of time once you get it working. I'm looking forward to that time savings. :-)

Re: [R] Knitr: setting echo = FALSE globally [RESOLVED]

2015-07-21 Thread John Kane
Hi Rich, It sounds like your approach with the chunks is equivalent to my approach. Somewhere I remember reading that the global chunk commands apply to everything 'after' the global command--which once one thinks about it is sensible . Glad it's working. R +knitr does save a l

Re: [R] Knitr: setting echo = FALSE globally [RESOLVED]

2015-07-21 Thread Rich Shepard
On Mon, 20 Jul 2015, John Kane wrote: I have no idea wha that chunk is not working but I think you can get the same result using the old method Stick the following in an ERT box: <>= opts_chunk$set(echo = FALSE) @ John, My original response was too large (3 attached PDF files) and was held

Re: [R] Knitr: setting echo = FALSE globally

2015-07-20 Thread John Kane
rotchety. John Kane Kingston ON Canada > -Original Message- > From: rshep...@appl-ecosys.com > Sent: Mon, 20 Jul 2015 12:58:51 -0700 (PDT) > To: r-help@r-project.org > Subject: Re: [R] Knitr: setting echo = FALSE globally > > On Mon, 20 Jul 2015, Thierry Onkel

Re: [R] Knitr: setting echo = FALSE globally

2015-07-20 Thread Rich Shepard
On Mon, 20 Jul 2015, Thierry Onkelinx wrote: We need the source file. Attached to the original message was the TeX output called, 'sample.txt'. I've attached it again, but with the .tex extension. Also, the .lyx file is attached. Rich#LyX 2.1 created this file. For more info see http://www.

Re: [R] Knitr: setting echo = FALSE globally

2015-07-20 Thread Rich Shepard
On Mon, 20 Jul 2015, Yihui Xie wrote: Section 5.1.3 of the book "Dynamic Documents with R and knitr" is titled "Global Options". I don't know how to make it more clear for readers to find information on global options in the book. Yes, I've read that and have not found where 'opts_chunk$set(

Re: [R] Knitr: setting echo = FALSE globally

2015-07-20 Thread Thierry Onkelinx
We need the source file. Not the output. And please try to make it as small as possible while still reproducing the problem. The smaller the example, the easier it is for us to help you. Op 20-jul.-2015 21:17 schreef "Rich Shepard" : > On Mon, 20 Jul 2015, Thierry Onkelinx wrote: > > Have you tri

Re: [R] Knitr: setting echo = FALSE globally

2015-07-20 Thread Rich Shepard
On Mon, 20 Jul 2015, Thierry Onkelinx wrote: Have you tried echo = FALSE instead of echo = F. If that doesn't solve your problem, please provide a minimal reproducible example. Yes, I have. Attached is a TeX file renamed to sample.txt (rather than .tex to ensure it is not stripped), a PDF

Re: [R] Knitr: setting echo = FALSE globally

2015-07-20 Thread Yihui Xie
Section 5.1.3 of the book "Dynamic Documents with R and knitr" is titled "Global Options". I don't know how to make it more clear for readers to find information on global options in the book. Regards, Yihui -- Yihui Xie Web: http://yihui.name On Mon, Jul 20, 2015 at 12:58 PM, Rich Shepard wro

Re: [R] Knitr: setting echo = FALSE globally

2015-07-20 Thread Thierry Onkelinx
Have you tried echo = FALSE instead of echo = F. If that doesn't solve your problem, please provide a minimal reproducible example. Op 20-jul.-2015 20:02 schreef "Rich Shepard" : > Near the beginning of a LyX document I have a knitr chunk with options > that begin with 'global_options', and inc

[R] Knitr: setting echo = FALSE globally

2015-07-20 Thread Rich Shepard
Near the beginning of a LyX document I have a knitr chunk with options that begin with 'global_options', and includes echo=F. This presents the R code in that chunk from displaying in the compiled PDF file. However, all following knitr chunks are included in the PDF file. Reading the docs (in

Re: [R] Knitr/Lattice/Lyx [was: Trellis Plots: translating lattice xyplot() to ggplot()]

2015-07-12 Thread Rich Shepard
On Sat, 11 Jul 2015, Yihui Xie wrote: There is a ')' missing in the end. When you see errors from parse(), that often means the code is not syntactically correct. Most sincere appologies for my not catching that each time I looked at the code. Will be more thorough and put the problem aside

Re: [R] Knitr/Lattice/Lyx [was: Trellis Plots: translating lattice xyplot() to ggplot()]

2015-07-11 Thread David Winsemius
On Jul 11, 2015, at 5:47 PM, David Winsemius wrote: > > On Jul 11, 2015, at 5:30 PM, Rich Shepard wrote: > >> On Sat, 11 Jul 2015, Rich Shepard wrote: >> >>> The .RData and .lyx files were stripped off. I'll try sending them again. >> >> .RData didn't make it. Perhaps now. > > Please stop tr

Re: [R] Knitr/Lattice/Lyx [was: Trellis Plots: translating lattice xyplot() to ggplot()]

2015-07-11 Thread Jeff Newmiller
Read the Posting Guide. Most attachments get stripped on the list to discourage viruses and encourage small, reproducible examples in the body of the email. --- Jeff NewmillerThe . .

Re: [R] Knitr/Lattice/Lyx [was: Trellis Plots: translating lattice xyplot() to ggplot()]

2015-07-11 Thread David Winsemius
On Jul 11, 2015, at 5:30 PM, Rich Shepard wrote: > On Sat, 11 Jul 2015, Rich Shepard wrote: > >> The .RData and .lyx files were stripped off. I'll try sending them again. > > .RData didn't make it. Perhaps now. Please stop trying to send data types that are explicitly not allowed. (I was sur

Re: [R] Knitr/Lattice/Lyx [was: Trellis Plots: translating lattice xyplot() to ggplot()]

2015-07-11 Thread Yihui Xie
Perhaps it is not obvious to you, but it is fairly obvious to me that the R code in this code chunk is incomplete: <<>>= xyplot(value ~ sampdate | variable, data=carlin.2.melt, rm.na = T, ylab = 'Measured Value', xlab = 'Date' @ There is a ')' missing in the end. When you see errors from parse(),

Re: [R] Knitr/Lattice/Lyx [was: Trellis Plots: translating lattice xyplot() to ggplot()]

2015-07-11 Thread Rich Shepard
On Sat, 11 Jul 2015, Rich Shepard wrote: The .RData and .lyx files were stripped off. I'll try sending them again. .RData didn't make it. Perhaps now. Rich __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/

Re: [R] Knitr/Lattice/Lyx [was: Trellis Plots: translating lattice xyplot() to ggplot()]

2015-07-11 Thread Rich Shepard
On Sat, 11 Jul 2015, Rich Shepard wrote: Attached are the .RData file from the cwd, the test.lyx file (lyx-2.1.3), and the two test files from /tmp/.../lyx_tmpbuf3/. The .RData and .lyx files were stripped off. I'll try sending them again. Rich#LyX 2.1 created this file. For more info see

Re: [R] Knitr/Lattice/Lyx [was: Trellis Plots: translating lattice xyplot() to ggplot()]

2015-07-11 Thread Rich Shepard
On Sat, 11 Jul 2015, Yihui Xie wrote: I guess you didn't tell us you were compiling the document with dvips That's how I preview lyx docs for the past decade-and-a-half or so. The final .pdf is generated with pdflatex. There is now an issue when a second figure is added to the document: i

[R] nonlinear MVA in R/knitr

2015-06-10 Thread Jan de Leeuw
http://rpubs.com/deleeuw/83572. The paper uses monotone B-splines and majorization in an R function that implements nonlinear generalizations of PCA, multiple regression, image analysis, SEM. And much more. This extends methods in the CRAN package `aspect`. The theory has been around for 30 yea

Re: [R] Presentation tables in R (knitr)

2014-11-26 Thread Franzini, Gabriele [Nervianoms]
Subject: [R] Presentation tables in R (knitr) Hi, This problem has me stumped so I thought I'd ask the experts. I'm trying to create a pretty summary table of some data (which patients have had what tests at what times). Ideally I'd like to knitr this into a pretty PDF for presenta

Re: [R] Presentation tables in R (knitr)

2014-11-25 Thread Jeff Newmiller
Pebbles in sand are also an alternative to Excel, but that doesn't mean people want to switch to abaci. Horse, meet water. If you use LaTeX (or Rmarkdown-to-pdf in RStudio), then you can obtain much better looking tables using latex.tabular(). Unfortunately, LaTeX is just too scary for some peo

Re: [R] Presentation tables in R (knitr)

2014-11-25 Thread Tom Wright
Thanks Duncan, Dropping the extra columns might be the way forward. I'm sure I can work out how to embed latex into a markdown document ;-) On Tue, Nov 25, 2014 at 4:37 PM, Duncan Murdoch wrote: > On 25/11/2014 3:12 PM, Tom Wright wrote: > >> Hi, >> This problem has me stumped so I thought I'd a

Re: [R] Presentation tables in R (knitr)

2014-11-25 Thread Duncan Murdoch
On 25/11/2014 3:12 PM, Tom Wright wrote: Hi, This problem has me stumped so I thought I'd ask the experts. I'm trying to create a pretty summary table of some data (which patients have had what tests at what times). Ideally I'd like to knitr this into a pretty PDF for presentation. If anyone has

Re: [R] Presentation tables in R (knitr)

2014-11-25 Thread Tom Wright
Hi Mark, It is the underscores that are my issue, I'd prefer multiple level row titles: |ID1 |ID2 |Time1 |Time2 |Time1 |Time2 |OD |OS |OD |OS|OD |OS |OD |OS Height | 1| 1 | 1 | 1 | 1 | 1 | 1 | 1 Weight| 1| 1 | 1 | 1 | 1

Re: [R] Presentation tables in R (knitr)

2014-11-25 Thread Mark Sharp
Tom, If you are wanting PDF as your output, are you wanting to use LaTeX or Markdown with knitr. LaTeX will give you more options. You have not shown an attempt to use either for your table construction. Can you define what you mean by pretty? Is it the underscores in the column names that are

[R] Presentation tables in R (knitr)

2014-11-25 Thread Tom Wright
Hi, This problem has me stumped so I thought I'd ask the experts. I'm trying to create a pretty summary table of some data (which patients have had what tests at what times). Ideally I'd like to knitr this into a pretty PDF for presentation. If anyone has pointers I'll be grateful. require(tables)

Re: [R] Knitr: how to find out from within a .Rmd file the output type?

2014-10-31 Thread Hadley Wickham
Try knitr::opts_knit$get('rmarkdown.pandoc.to') Hadley On Fri, Oct 31, 2014 at 6:56 AM, Michal Kvasnička wrote: > Hi. > > Is there a way how to find out from within a .Rmd file what output format > is generated? > > The reason is this: I write a paper in R markdown in RStudio. Sometimes I > gene

Re: [R] Knitr: how to find out from within a .Rmd file the output type?

2014-10-31 Thread Jeff Laake - NOAA Federal
This has worked for me to choose the type of code to use to create tables whether it is pdf or hml/word doc.type <- strsplit(rmarkdown:::default_output_format("20141014_Regex_Rmarkdown.Rmd")$name,"_")[[1]][1] where you would use your .rmd filename in place of 20141014_Regex_Rmarkdown.Rmd I haven

Re: [R] Knitr: how to find out from within a .Rmd file the output type?

2014-10-31 Thread Michal Kvasnička
Yes, markdown is not LaTex. However, RStudio run pandoc that can convert markdown to HTML, LaTeX, Word, and many other markup (or almost markup) languages. The conversion to the first three mentioned works automatically in RStudio. But you are right in one thing: perhaps it is not a matter of knit

Re: [R] Knitr: how to find out from within a .Rmd file the output type?

2014-10-31 Thread Jeff Newmiller
AFAIK markdown is syntactically incompatible with LaTeX, except for math mode expressions. That is why we have separate extensions Rmd and Rnw for the two types of files. I don't know where one could successfully make use of the variable you are asking about.

[R] Knitr: how to find out from within a .Rmd file the output type?

2014-10-31 Thread Michal Kvasnička
Hi. Is there a way how to find out from within a .Rmd file what output format is generated? The reason is this: I write a paper in R markdown in RStudio. Sometimes I generate .html, sometimes .pdf. My paper presents a table of regression models using stargazer function. I've got the following cod

Re: [R] knitr and stopifnot replacement.

2014-08-22 Thread Yihui Xie
Yep, that is exactly the answer. Regards, Yihui -- Yihui Xie Web: http://yihui.name On Fri, Aug 22, 2014 at 6:35 AM, Bart Kastermans wrote: > On 22 Aug 2014, at 12:39, Duncan Murdoch wrote: > >> On 22/08/2014, 6:02 AM, Bart Kastermans wrote: >>> I have a daily generated report in which I put

Re: [R] knitr and stopifnot replacement.

2014-08-22 Thread Bart Kastermans
On 22 Aug 2014, at 12:39, Duncan Murdoch wrote: > On 22/08/2014, 6:02 AM, Bart Kastermans wrote: >> I have a daily generated report in which I put a check using stopifnot. >> Unfortunately >> I didn’t check the effect very well, turns out that if the condition checked >> fails >> this is not s

Re: [R] knitr and stopifnot replacement.

2014-08-22 Thread Duncan Murdoch
On 22/08/2014, 6:02 AM, Bart Kastermans wrote: > I have a daily generated report in which I put a check using stopifnot. > Unfortunately > I didn’t check the effect very well, turns out that if the condition checked > fails > this is not shown in the knitr output (I only get an error much later

[R] knitr and stopifnot replacement.

2014-08-22 Thread Bart Kastermans
I have a daily generated report in which I put a check using stopifnot. Unfortunately I didn’t check the effect very well, turns out that if the condition checked fails this is not shown in the knitr output (I only get an error much later due to a missing object). So my question is, what is th

Re: [R] knitr - Highlight code/output

2014-05-04 Thread Stephen Sentoff
Adding a line like options(width=60) should make the R output narrower, so that it will fit into the highlighted frame. If you don't want to see this line, you can put it into a separate chunk that isn't echoed. -- Steve Sentoff shsent...@comcast.net __

[R] knitr - Highlight code/output

2014-05-03 Thread Axel Urbiz
Hello, I find situations where some segments of the code are displayed in the output but not entirely highlighted. I guess there should be a way to fix this, but I could't find it in the options. Here's an example with knitr/LaTex. \documentclass{article} \begin{document} \section{Example 1}

Re: [R] KnitR/RMarkdown: Is there a way to not print a section of the document?

2014-01-27 Thread Yihui Xie
SW 2351 > Email: home: mac...@northnet.com.au > > > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Jeff Johnson > Sent: Tuesday, 28 January 2014 10:49 > To: R help > Subject: [R] KnitR/RMarkdown: Is ther

Re: [R] KnitR/RMarkdown: Is there a way to not print a section of the document?

2014-01-27 Thread Duncan Mackay
Behalf Of Jeff Johnson Sent: Tuesday, 28 January 2014 10:49 To: R help Subject: [R] KnitR/RMarkdown: Is there a way to not print a section of the document? I've been looking through the R documents to see if there's a way to not output certain chunks of code. I'm trying to present a doc

Re: [R] KnitR/RMarkdown: Is there a way to not print a section of the document?

2014-01-27 Thread Luke Miller
In the chunk options, you can use the argument echo = FALSE to suppress display of the R code in the output. << echo = FALSE>>= # R code @ This will still print out results from R that would be sent to the command line (like print() statements, cat() statements, results from summary(), etc), but th

[R] KnitR/RMarkdown: Is there a way to not print a section of the document?

2014-01-27 Thread Jeff Johnson
I've been looking through the R documents to see if there's a way to not output certain chunks of code. I'm trying to present a document to a team of folks that won't necessarily be interested in the line-by-line code, though they are interested in the charts, etc. Thus, I'd like to not output cert

Re: [R] Knitr, ggplot and consistent fonts

2013-12-23 Thread Yihui Xie
; -Original Message- >> > From: dulca...@bigpond.com >> > Sent: Mon, 23 Dec 2013 22:28:33 +1000 >> > To: daniel.haugstv...@gmail.com, r-help@r-project.org >> > Subject: Re: [R] Knitr, ggplot and consistent fonts >> > >> > Hi Dan >> >

Re: [R] Knitr, ggplot and consistent fonts

2013-12-23 Thread John Kane
15:52:32 -0500 > To: jrkrid...@inbox.com, r...@temple.edu > Subject: Re: [R] Knitr, ggplot and consistent fonts > > On 13-12-23 1:07 PM, John Kane wrote: >> Thanks Duncan. >> I had the feeling I was doing something wrong but did not realise it was >> that stupi

Re: [R] Knitr, ggplot and consistent fonts

2013-12-23 Thread Duncan Murdoch
12:51:43 -0500 To: jrkrid...@inbox.com, r...@temple.edu Subject: Re: [R] Knitr, ggplot and consistent fonts On 13-12-23 12:40 PM, John Kane wrote: Thanks Richard. I did not realise such a function existed. Assuming I am using it correctly I do get an error though not where I was expec

Re: [R] Knitr, ggplot and consistent fonts

2013-12-23 Thread Federico Lasa
ON Canada > > > > -Original Message- > > From: dulca...@bigpond.com > > Sent: Mon, 23 Dec 2013 22:28:33 +1000 > > To: daniel.haugstv...@gmail.com, r-help@r-project.org > > Subject: Re: [R] Knitr, ggplot and consistent fonts > > > > Hi Dan &

Re: [R] Knitr, ggplot and consistent fonts

2013-12-23 Thread John Kane
est idea of what the example from the help page is doing. John Kane Kingston ON Canada > -Original Message- > From: murdoch.dun...@gmail.com > Sent: Mon, 23 Dec 2013 12:51:43 -0500 > To: jrkrid...@inbox.com, r...@temple.edu > Subject: Re: [R] Knitr, ggplot and consistent f

Re: [R] Knitr, ggplot and consistent fonts

2013-12-23 Thread Duncan Murdoch
;, fill = "white")') Duncan Murdoch John Kane Kingston ON Canada -Original Message- From: r...@temple.edu Sent: Mon, 23 Dec 2013 11:44:42 -0500 To: jrkrid...@inbox.com Subject: Re: [R] Knitr, ggplot and consistent fonts If the problem seems to be non-ASCII characte

Re: [R] Knitr, ggplot and consistent fonts

2013-12-23 Thread John Kane
- > From: r...@temple.edu > Sent: Mon, 23 Dec 2013 11:44:42 -0500 > To: jrkrid...@inbox.com > Subject: Re: [R] Knitr, ggplot and consistent fonts > > If the problem seems to be non-ASCII characters, then the first > investigation > step is to use the R functions > > ?t

Re: [R] Knitr, ggplot and consistent fonts

2013-12-23 Thread John Kane
ane Kingston ON Canada -Original Message- From: fel...@gmail.com Sent: Mon, 23 Dec 2013 10:53:59 -0600 To: jrkrid...@inbox.com Subject: Re: [R] Knitr, ggplot and consistent fonts Hi, chiming in.  Pasted the code in R studio and the format parser wouldn't mark the R code chunks. It was because th

Re: [R] Knitr, ggplot and consistent fonts

2013-12-23 Thread Richard M. Heiberger
3 Dec 2013 22:28:33 +1000 >> To: daniel.haugstv...@gmail.com, r-help@r-project.org >> Subject: Re: [R] Knitr, ggplot and consistent fonts >> >> Hi Dan >> >> >> >> I think you still have problems with embedded characters or some problems >> in >> ch

Re: [R] Knitr, ggplot and consistent fonts

2013-12-23 Thread John Kane
t: Mon, 23 Dec 2013 22:28:33 +1000 > To: daniel.haugstv...@gmail.com, r-help@r-project.org > Subject: Re: [R] Knitr, ggplot and consistent fonts > > Hi Dan > > > > I think you still have problems with embedded characters or some problems > in > char code page con

Re: [R] Knitr, ggplot and consistent fonts

2013-12-23 Thread Duncan Mackay
gstv...@gmail.com] Sent: Monday, 23 December 2013 20:10 To: Duncan Mackay Cc: John Kane; R Subject: Re: [R] Knitr, ggplot and consistent fonts I am really sorry for posting a non-working example. It is running when I cut the code from my previous mail into a clean session in RStudio (OSX). Howeve

Re: [R] Knitr, ggplot and consistent fonts

2013-12-23 Thread Daniel Haugstvedt
@northnet.com.au > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of John Kane > Sent: Monday, 23 December 2013 04:19 > To: Daniel Haugstvedt; r-help@r-project.org > Subject: Re: [R] Knitr, ggplot and consistent fo

Re: [R] Knitr, ggplot and consistent fonts

2013-12-22 Thread Duncan Mackay
2351 Email: home: mac...@northnet.com.au -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of John Kane Sent: Monday, 23 December 2013 04:19 To: Daniel Haugstvedt; r-help@r-project.org Subject: Re: [R] Knitr, ggplot and consistent fonts

Re: [R] Knitr, ggplot and consistent fonts

2013-12-22 Thread John Kane
Message- > From: daniel.haugstv...@gmail.com > Sent: Sun, 22 Dec 2013 12:42:50 +0100 > To: r-help@r-project.org > Subject: [R] Knitr, ggplot and consistent fonts > > Dear R-help > > I am using Knitr and ggplot to draft an article and have now started to > improve on the layou

[R] Knitr, ggplot and consistent fonts

2013-12-22 Thread Daniel Haugstvedt
Dear R-help I am using Knitr and ggplot to draft an article and have now started to improve on the layout and graphics. So far I have not been able to maintain the same font size for labels in all my figures. My goal is to be able to change the width of the figures while maintaining the same font

Re: [R] knitr and functions generating latex

2013-10-09 Thread Yihui Xie
I think in most cases you are probably on the wrong track if you have to generate LaTeX code for figures from R code (LaTeX tables are another story), but your case might be different. You did not give a specific example on why you had to do that, so I cannot give any advice for now. My best guess

[R] knitr and functions generating latex

2013-10-09 Thread Daryl Morris
Hi, I have what I think should be a basic question on knitr. I am just moving to knitr, and previously I had created functions which automatically created latex wrappers for many (100s) figures. I also have other functions which automatically create pages worth of latex tables. The knitr m

Re: [R] knitr: Was previously " Sweave: printing an underscore in the output from an R command"

2013-09-02 Thread Yihui Xie
On Mon, Sep 2, 2013 at 5:01 PM, David Epstein wrote: > Dear Yihui > Thanks very much for drawing my attention to knitr, which I had not heard of > before. Also thanks for pointing out the bug in Sweave, which I don't fully > understand, but I don't want to spend time and effort on understanding

[R] knitr: Was previously " Sweave: printing an underscore in the output from an R command"

2013-09-02 Thread David Epstein
Dear Yihui Thanks very much for drawing my attention to knitr, which I had not heard of before. Also thanks for pointing out the bug in Sweave, which I don't fully understand, but I don't want to spend time and effort on understanding it. So I hope you will find time to report the bug. I was pre

Re: [R] knitr: side-by-side figures in R markdown

2013-06-20 Thread Michael Friendly
On 6/19/2013 5:31 PM, Yihui Xie wrote: You need to remove out.extra='style="display:block; margin: auto"'. In CSS, display:block; means this element stands in its own line, and no other elements can sit by its side. This is applied to individual images, so the two images will not be arranged side

Re: [R] knitr without R studio

2013-06-20 Thread AlexPiche
Thank you for your time guys, I solve my issue. Regards, Alex -- View this message in context: http://r.789695.n4.nabble.com/knitr-without-R-studio-tp4669841p4669951.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.o

Re: [R] knitr: side-by-side figures in R markdown

2013-06-19 Thread Yihui Xie
th knitr, perhaps a chunk hook? > > --- test-figs.Rmd - > Testing side-by-side figs > == > > ```{r knitr-setup, include=FALSE} > library(knitr) > library(vcd) > opts_chunk$set(out.extra='style="display:block; margin: auto"', > fig.align=&quo

Re: [R] knitr without R studio

2013-06-19 Thread Yihui Xie
knitr is not tied to RStudio, and I believe this StackOverflow post can answer your question: http://stackoverflow.com/q/10646665/559676 Regards, Yihui -- Yihui Xie Phone: 206-667-4385 Web: http://yihui.name Fred Hutchinson Cancer Research Center, Seattle On Wed, Jun 19, 2013 at 4:42 AM, Ista Z

[R] knitr: side-by-side figures in R markdown

2013-06-19 Thread Michael Friendly
A small test file is below. If I were composing HTML directly, I would just wrap the images in a table, e.g., Is there someway to achieve this with knitr, perhaps a chunk hook? --- test-figs.Rmd - Testing side-by-side figs ====== ```{r knitr-setup, inc

Re: [R] knitr without R studio

2013-06-19 Thread Ista Zahn
Hi Alex, Have you read the ?knit or ?knit2html documentation? I don't believe there is a kit2HTML function (notice the uppercase), and the input should be the path to a file. Please do read the documentation. Best, Ista On Wed, Jun 19, 2013 at 3:53 AM, AlexPiche wrote: > Hello folks, > > I`m us

[R] knitr without R studio

2013-06-19 Thread AlexPiche
Hello folks, I`m using knitr on R studio, which make it easy to use, but a coworker of mine would like to run it on "simple" R. So I was wondering if you know what is the equivalent of the button "knit HTML" in RStudio in R. I tried knit2HTML( Graph 1 <#location1> Graph

Re: [R] knitr error with Lyx

2012-11-29 Thread Mark Lamias
Hi, Yihui, Attached is an HTML Diff report of the two files.  The left pane contains the R-2.15.0 file. Thanks. --Mark From: Yihui Xie To: Mark Lamias Cc: "r-help@r-project.org" Sent: Thursday, November 29, 2012 2:43 PM Subject: Re: [R] k

Re: [R] knitr error with Lyx

2012-11-29 Thread Yihui Xie
That is very helpful! Just to continue debugging, can you save the two versions of the tex files produced from LyX with different versions of R and do a diff on them? It sounds like something has changed from R 2.15.0 to 2.15.2. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.na

Re: [R] knitr error with Lyx

2012-11-29 Thread Mark Lamias
yours, Mark J. Lamias From: Yihui Xie Cc: "r-help@r-project.org" Sent: Thursday, November 29, 2012 2:02 PM Subject: Re: [R] knitr error with Lyx Quite a few people have had this problem, but since I'm unable to reproduce it, I'm not e

Re: [R] knitr error with Lyx

2012-11-29 Thread Yihui Xie
Quite a few people have had this problem, but since I'm unable to reproduce it, I'm not exactly sure how to fix it either. A few references that might be helpful to you: http://stackoverflow.com/q/12448507/559676 https://github.com/yihui/knitr/issues/413 It is very likely to be a pure LaTeX probl

[R] knitr error with Lyx

2012-11-29 Thread Mark Lamias
R Users, I just upgraded my version of R from R-2.15.0 to R-2.15.2 and installed the latest versions of LyX and MikTex running Windows 7 Ultimate, 64-bit OS.  Prior to the upgrade, I was using Lyx with knitr to generate a document with no problems.  However, after the upgrade, and using the sa

Re: [R] knitr

2012-08-30 Thread Yihui Xie
Can you post a reproducible example? Do you have \begin{document} in your Rnw file? Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Thu, Aug 30, 2012 at 10:35 AM, Sven D wrote: > Hello, > > a

[R] knitr

2012-08-30 Thread Sven D
Hello, after trying to convert to pdf using knitr, I get the following error messages from the error log: C:/Users/duve/Documents/plots2.tex:5: LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help You're in trouble here. Tr

Re: [R] knitr customization

2012-05-25 Thread Yihui Xie
On Fri, May 25, 2012 at 2:30 PM, Giovanni Petris wrote: > > I am trying to transition from Sweave to knitr, but there are a few > things about customization of the appearence of R input and output that > I did not get yet. Maybe somebody on the list can help me. > > In my Sweave presentations I us

[R] knitr customization

2012-05-25 Thread Giovanni Petris
I am trying to transition from Sweave to knitr, but there are a few things about customization of the appearence of R input and output that I did not get yet. Maybe somebody on the list can help me. In my Sweave presentations I used a slanted font for the R input and a normal font for the output,