I am trying a simple Rmarkdown doc using the {bash} tag
I need to issue a command with sudo
Clearly the markdown engine fails on this task
Any idea how to pass sudo password to a markdown document
Thanks in advance for any help
Follows a reproducible example
---
title: "test"
author: "Andrea"
date: "9/15/2020"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
text here
```{bash}
ls
```
```{bash}
sudo su
ls
```