#RStats tip of the day, Do you know you can use if else statements in chunk options? The following code chunk will evaluate if tidyvserse is not installed.
2
6
44
0
13
Download Image
@data_question Here's an alternative format I find intuitive. I do this for all used packages then use library() for all used packages. In this case, I commented out this line because I later found an alternative approach that didn't use dplyr.
@data_question By the way, is there a function that does the following - if tidyverse is installed, load the package - if not, install and load the package ?