My RMD file is in cloud/project/hw
The data file is in cloud/project/data
Confusingly, when working interactively I have to use
data <- read.delim("data/data.txt")
but when I knit, I have to use
data <- read.delim("../data/data.txt")
Why is there a discrepancy and how can I resolve it?