I have a Rstudio project set up with the .Rprofile containing
library(tidyverse)
library(knitr)
knitr::opts_chunk$set(cache.path='cache/', fig.path='figures/')
I separately have a .Rmd file in a subdirectory when I render into a html. However, it appears that .Rprofile is not sourced at all until I directly source it using source(here('.Rprofile'))
. I do know that it is sourced properly in the console, and I'd like the knitr render process to source it to (without me directly doing it). What is going on? Thanks!