Re: [ESS] Emacs, ESS and Rmarkdown: Is this the way compile is supposed to work?

2023-04-15 Thread Dirk Eddelbuettel via ESS-help


On 15 April 2023 at 19:21, Kevin Zembower via ESS-help wrote:
| I'm trying to get Emacs, ESS and Rmarkdown to work together for the 
| first time. Therefore, the problem might be me, and not the software.
| 
| I have this program as Prob_11.Rmd:
| ==
| ---
| title: "Problem 11, Page 414"
| author: "Kevin"
| date: "13 Apr 2023"
| output: html_document
| ---
| 
| ### Load the sample data ###
| 
| Loading the sample data table into two vectors:
| 
| ``` {r}
| 
| (age11 <- c(18, 10, 3, 15, 12, 14, 15, 4, 20, 8))
| 
| (age16 <- c(6, 7, 14, 5, 14, 12, 3, 9, 4, 7))
| 
| ```
| 
| 
| I get this as output after choosing Markdown->Preview & Export->Compile:
| =
| 
| http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;>
| 
| http://www.w3.org/1999/xhtml;>
| 
| 
| *markdown-output*
| 
| 
| 
| 
| 
| 
| Load the sample data
| Loading the sample data table into two vectors:
| 
| (age11 - c(18, 10, 3, 15, 12, 14, 15, 4, 20, 8))
| 
| (age16 - c(6, 7, 14, 5, 14, 12, 3, 9, 4, 7))
| 
| 
| 
| 
| ==
| 
| This looks correct, except that I was expecting the last two lines to 
| look like:
| 
|  > (age11 <- c(18, 10, 3, 15, 12, 14, 15, 4, 20, 8))
|   [1] 18 10  3 15 12 14 15  4 20  8
|  > (age16 <- c(6, 7, 14, 5, 14, 12, 3, 9, 4, 7))
|   [1]  6  7 14  5 14 12  3  9  4  7
| 
| Am I doing something wrong? Am I misunderstanding what RMarkdown is 
| doing? I tried options like 'echo=TRUE' and 'eval=TRUE' without success.
| 
| Thanks for any advice or guidance. I posted this request on 
| stackoverflow.com, at 
| 
https://stackoverflow.com/questions/76014830/emacs-ess-and-rmarkdown-is-this-the-way-compile-is-supposed-to-work,
 
| but didn't get any response.

Actually, I did respond with this comment
https://stackoverflow.com/questions/76014830/emacs-ess-and-rmarkdown-is-this-the-way-compile-is-supposed-to-work#comment134066087_76014830

I believe you are confusing Markdown (no R) with support from Emacs (but no
connection to R) with what you desire for RMarkdown.  I responded that I
happen to do this differently via M-x compile-command and script to render
RMarkdown.

Anyway, this is the right list and there likely is a function from ESS
too. If so someone will likely offer advice.

Good luck,  Dirk

-- 
dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


[ESS] Emacs, ESS and Rmarkdown: Is this the way compile is supposed to work?

2023-04-15 Thread Kevin Zembower via ESS-help
I'm trying to get Emacs, ESS and Rmarkdown to work together for the 
first time. Therefore, the problem might be me, and not the software.

I have this program as Prob_11.Rmd:
==
---
title: "Problem 11, Page 414"
author: "Kevin"
date: "13 Apr 2023"
output: html_document
---

### Load the sample data ###

Loading the sample data table into two vectors:

``` {r}

(age11 <- c(18, 10, 3, 15, 12, 14, 15, 4, 20, 8))

(age16 <- c(6, 7, 14, 5, 14, 12, 3, 9, 4, 7))

```


I get this as output after choosing Markdown->Preview & Export->Compile:
=

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;>

http://www.w3.org/1999/xhtml;>


*markdown-output*






Load the sample data
Loading the sample data table into two vectors:

(age11 - c(18, 10, 3, 15, 12, 14, 15, 4, 20, 8))

(age16 - c(6, 7, 14, 5, 14, 12, 3, 9, 4, 7))




==

This looks correct, except that I was expecting the last two lines to 
look like:

 > (age11 <- c(18, 10, 3, 15, 12, 14, 15, 4, 20, 8))
  [1] 18 10  3 15 12 14 15  4 20  8
 > (age16 <- c(6, 7, 14, 5, 14, 12, 3, 9, 4, 7))
  [1]  6  7 14  5 14 12  3  9  4  7

Am I doing something wrong? Am I misunderstanding what RMarkdown is 
doing? I tried options like 'echo=TRUE' and 'eval=TRUE' without success.

Thanks for any advice or guidance. I posted this request on 
stackoverflow.com, at 
https://stackoverflow.com/questions/76014830/emacs-ess-and-rmarkdown-is-this-the-way-compile-is-supposed-to-work,
 
but didn't get any response.

-Kevin


__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help