these are errors I got processing file: Lab3 at M.Rmd |.... | 6% ordinary text without R code |........ | 12% label: unnamed-chunk-1 |........... | 18% ordinary text without R code |............... | 24% label: unnamed-chunk-2 |................... | 29% ordinary text without R code |....................... | 35% label: unnamed-chunk-3 |........................... | 41% ordinary text without R code |............................... | 47% label: unnamed-chunk-4 Quitting from lines 42-48 (Lab3 at M.Rmd) Error in `$<-.data.frame`(`*tmp*`, "HorsePower", value = numeric(0)) : replacement has 0 rows, data has 398 Calls: <Anonymous> ... withVisible -> eval -> eval -> $<- -> $<-.data.frame Execution halted No TeX installation detected (TeX is required to create PDF output). You should install a recommended TeX distribution for your platform: Windows: MiKTeX (Complete) - http://miktex.org/2.9/setup (NOTE: Be sure to download the Complete rather than Basic installation) Mac OS X: TexLive 2013 (Full) - http://tug.org/mactex/ (NOTE: Download with Safari rather than Chrome _strongly_ recommended) Linux: Use system package manager On Thu, Feb 25, 2016 at 3:58 PM, Erin Hodgess <erinm.hodgess at gmail.com> wrote:> What's the error? You have to show it and the Rmd too, please. > > > > On Thu, Feb 25, 2016 at 5:35 PM, Alnazer Elbedairy < > alnazer.elbedairy at gmail.com> wrote: > >> Dear All >> I did the following steps to get a PDF file from Rstudio >> 1- activate Rmarkdown >> 2- save file as (name.Rmd) >> 3- use chunk for each step >> 4- go to Knit - PDF to save a file as PDF but I got an error >> any help please >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> 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. >> > > > > -- > Erin Hodgess > Associate Professor > Department of Mathematical and Statistics > University of Houston - Downtown > mailto: erinm.hodgess at gmail.com >[[alternative HTML version deleted]]
So, do you have MikTeK installed (assuming you are using Windows)? Peter Alspach -----Original Message----- From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Alnazer Elbedairy Sent: Friday, 26 February 2016 5:13 p.m. To: Erin Hodgess <erinm.hodgess at gmail.com> Cc: r-help mailing list <r-help at r-project.org> Subject: Re: [R] PDF form Rstudio these are errors I got processing file: Lab3 at M.Rmd |.... | 6% ordinary text without R code |........ | 12% label: unnamed-chunk-1 |........... | 18% ordinary text without R code |............... | 24% label: unnamed-chunk-2 |................... | 29% ordinary text without R code |....................... | 35% label: unnamed-chunk-3 |........................... | 41% ordinary text without R code |............................... | 47% label: unnamed-chunk-4 Quitting from lines 42-48 (Lab3 at M.Rmd) Error in `$<-.data.frame`(`*tmp*`, "HorsePower", value = numeric(0)) : replacement has 0 rows, data has 398 Calls: <Anonymous> ... withVisible -> eval -> eval -> $<- -> $<-.data.frame Execution halted No TeX installation detected (TeX is required to create PDF output). You should install a recommended TeX distribution for your platform: Windows: MiKTeX (Complete) - http://miktex.org/2.9/setup (NOTE: Be sure to download the Complete rather than Basic installation) Mac OS X: TexLive 2013 (Full) - http://tug.org/mactex/ (NOTE: Download with Safari rather than Chrome _strongly_ recommended) Linux: Use system package manager On Thu, Feb 25, 2016 at 3:58 PM, Erin Hodgess <erinm.hodgess at gmail.com> wrote:> What's the error? You have to show it and the Rmd too, please. > > > > On Thu, Feb 25, 2016 at 5:35 PM, Alnazer Elbedairy < > alnazer.elbedairy at gmail.com> wrote: > >> Dear All >> I did the following steps to get a PDF file from Rstudio >> 1- activate Rmarkdown >> 2- save file as (name.Rmd) >> 3- use chunk for each step >> 4- go to Knit - PDF to save a file as PDF but I got an error any help >> please >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> 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. >> > > > > -- > Erin Hodgess > Associate Professor > Department of Mathematical and Statistics University of Houston - > Downtown > mailto: erinm.hodgess at gmail.com >[[alternative HTML version deleted]] ______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see 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. The contents of this e-mail are confidential and may be ...{{dropped:14}}
This message tells you what is wrong and the solution: No TeX installation detected (TeX is required to create PDF output). You should install a recommended TeX distribution for your platform: LaTeX is used to generate the pdfs, to you need to have installed on your system. To avoid problems later, it is better to install the full TeX. Hope this helps Ulrik On Fri, 26 Feb 2016 at 05:25 Peter Alspach <Peter.Alspach at plantandfood.co.nz> wrote:> So, do you have MikTeK installed (assuming you are using Windows)? > > Peter Alspach > > -----Original Message----- > From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Alnazer > Elbedairy > Sent: Friday, 26 February 2016 5:13 p.m. > To: Erin Hodgess <erinm.hodgess at gmail.com> > Cc: r-help mailing list <r-help at r-project.org> > Subject: Re: [R] PDF form Rstudio > > these are errors I got > > processing file: Lab3 at M.Rmd > |.... | 6% > ordinary text without R code > > |........ | 12% > label: unnamed-chunk-1 > |........... | 18% > ordinary text without R code > > |............... | 24% > label: unnamed-chunk-2 > |................... | 29% > ordinary text without R code > > |....................... | 35% > label: unnamed-chunk-3 > |........................... | 41% > ordinary text without R code > > |............................... | 47% > label: unnamed-chunk-4 > > Quitting from lines 42-48 (Lab3 at M.Rmd) > Error in `$<-.data.frame`(`*tmp*`, "HorsePower", value = numeric(0)) : > replacement has 0 rows, data has 398 > Calls: <Anonymous> ... withVisible -> eval -> eval -> $<- -> > $<-.data.frame Execution halted > > No TeX installation detected (TeX is required to create PDF output). You > should install a recommended TeX distribution for your platform: > > Windows: MiKTeX (Complete) - http://miktex.org/2.9/setup > (NOTE: Be sure to download the Complete rather than Basic installation) > > Mac OS X: TexLive 2013 (Full) - http://tug.org/mactex/ > (NOTE: Download with Safari rather than Chrome _strongly_ recommended) > > Linux: Use system package manager > > On Thu, Feb 25, 2016 at 3:58 PM, Erin Hodgess <erinm.hodgess at gmail.com> > wrote: > > > What's the error? You have to show it and the Rmd too, please. > > > > > > > > On Thu, Feb 25, 2016 at 5:35 PM, Alnazer Elbedairy < > > alnazer.elbedairy at gmail.com> wrote: > > > >> Dear All > >> I did the following steps to get a PDF file from Rstudio > >> 1- activate Rmarkdown > >> 2- save file as (name.Rmd) > >> 3- use chunk for each step > >> 4- go to Knit - PDF to save a file as PDF but I got an error any help > >> please > >> > >> [[alternative HTML version deleted]] > >> > >> ______________________________________________ > >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > >> 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. > >> > > > > > > > > -- > > Erin Hodgess > > Associate Professor > > Department of Mathematical and Statistics University of Houston - > > Downtown > > mailto: erinm.hodgess at gmail.com > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. > The contents of this e-mail are confidential and may be ...{{dropped:14}} > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. >[[alternative HTML version deleted]]