0

I am trying to make some R tutorial presentation using "tutorial" package. There is a link "powered by datacamp" after each code window. I think it is far too much. Is there any way to remove some of "powered by datacamp"? and make it show at the beginning or end of the tutorial?

For example, when you create a R markdown file with tutorial::go_interactive(), it gives "powered by datacamp" after each code window:

---
title_meta: 'R tutorial'
title: Vectors
description: ''
---

```{r, include=FALSE}
tutorial::go_interactive()
knitr::opts_chunk$set(echo = TRUE)
library(knitr)
# no pec



  
david wei
  • 31
  • 4
  • As per here: https://github.com/datacamp/tutorial/issues/19 use the following javascript code: `$(".powered-by-datacamp" ).remove();` – Phil Feb 02 '21 at 04:42
  • Thanks for your reply. I do not have a lot of experience in javascript, is it possible to implement it using R and R studio? – david wei Feb 02 '21 at 20:48
  • See some ways here: https://stackoverflow.com/questions/54130094/how-can-i-use-javascript-in-code-chunks-of-rmarkdown – Phil Feb 02 '21 at 20:50
  • Thanks for your reply. I still can not make it work. I attached the RMarkdown code in the question. Could you take a try to remove the ""powered by datacamp""? Many thanks – david wei Feb 03 '21 at 16:29

0 Answers0