The include method will not work in R markdown documents. Instead one should use, in a separate script, the write method to save the CSS file.
color = "white",
fontSize = 30
write("style.css") # save
Then use that file in the front matter of the R markdown file, for instance.