I'm using Rmarkdown to show some bash code:
---
title: "Untitled"
author: "JPD"
date: "20 December 2016"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r gp.setup, engine= 'bash', eval=FALSE}
##Change names to remove dots
g.rename raster=gp_ortho.1,gp_ortho_1,gp_ortho.2,gp_ortho_2,\
gp_ortho.3,gp_ortho_3
##Group bands together
i.group --verbose group=gp_combo input=gp_ortho_1@gp1,gp_ortho_2@gp1,\
gp_ortho_3@gp1
```
However, when knitted to html, the g.rename line(s) mostly disappear. For comparison, the i.group command beneath is displayed correctly:
What is it about the g.rename line of code that is doing this? Is it the .
?