Skip to content

Instantly share code, notes, and snippets.

@franperezlopez
Created September 1, 2017 15:54
Show Gist options
  • Save franperezlopez/ce819eed960c10f33cecfd32168f8383 to your computer and use it in GitHub Desktop.
Save franperezlopez/ce819eed960c10f33cecfd32168f8383 to your computer and use it in GitHub Desktop.
rMarkdown compilation flags using variables on eval
```{r}
eval.trainModels=T
eval.pcaOptimization=T
```
```{r eval=eval.pcaOptimization, include=eval.pcaOptimization}
# code applying PCA optimization
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment