Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
royfrancis committed Nov 18, 2023
1 parent d9c5749 commit d7047d0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
4 changes: 3 additions & 1 deletion documents/ojs-widgets/index.qmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: ObservableJS in Quarto
description: Demonstration of widgets, upload and download
subtitle: Demonstration of widgets, upload and download
author: "Roy Francis"
date: last-modified
date-format: "DD-MMM-YYYY"
Expand All @@ -9,6 +9,8 @@ format:
theme: materia
fig-align: left
title-block-banner: true
toc: true
number-sections: true
---

See the [official OJS documentation](https://observablehq.com/documentation/inputs/overview).
Expand Down
10 changes: 6 additions & 4 deletions documents/ojs/index.qmd
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
---
title: ObservableJS in Quarto
description: "Integrating OJS and R in Quarto"
subtitle: "Integrating OJS and R in Quarto"
author: "Roy Francis"
date: last-modified
date-format: "DD-MMM-YYYY"
format:
html:
theme: materia
fig-align: left
title-block-banner: true
author: "Roy Francis"
date: last-modified
date-format: "DD-MMM-YYYY"
toc: true
---

## Passing data

Convert R data.frame to OJS object. This is the only code chunk that is R. All other chunks are ojs.

```{r}
#| filename: R code
irism <- iris
colnames(irism) <- gsub("[.]","_",tolower(colnames(irism)))
ojs_define(ojsd = irism)
Expand Down
12 changes: 6 additions & 6 deletions documents/webr/index.qmd
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
title: "webR-enabled code cells"
date: today
title-block-banner: true
number-sections: true
subtitle: Live R in quarto documents using web-r quarto extension
author: "Roy Francis"
date: last-modified
date-format: "DD-MMM-YYYY"
format:
html:
theme: materia
fig-align: left
title-block-banner: true
author: "Roy Francis"
date: last-modified
date-format: "DD-MMM-YYYY"
toc: true
number-sections: true
webr:
channel-type: "post-message"
engine: knitr
Expand Down

0 comments on commit d7047d0

Please sign in to comment.