Bioinformatics, Rstats, Deep Dives, Notes From Industry, Reproducibility.
work if you use relative paths: library(tidyverse) df <- read_csv("./data/datafile1.csv") df$SampleID <- "datafile1" This brings me to another important tip. I used to add as much annotation as I could to the filename (something like sample1_DNA_plasma_72hincubation.csv) but this is prone to errors