learnr icon indicating copy to clipboard operation
learnr copied to clipboard

Can't access data in data folder tutorial directory

Open NaturallyAsh opened this issue 2 years ago • 1 comments

I did create the data folder in the same directory as my tutorial file. These are my paths:

"tutorials/module_2/data/dataset.csv" 
"tutorials/module_2/lesson.Rmd" 

My entire course is bundled in a package, and that package root has a data folder. Below are the paths of both data folders:

"learnrIO/data/dataset.rds" 
"learnrIO/inst/tutorials/module_2/data/dataset.csv" 

I'm not sure if having a root data folder and tutorial level data folder causes so sort of interference?

Originally posted by @NaturallyAsh in https://github.com/rstudio/learnr/issues/99#issuecomment-1595573243

NaturallyAsh avatar Jun 20 '23 13:06 NaturallyAsh

@gadenbuie I am happy to share my source code. My package is currently private since it is in development. Would you suggest that I make it public and share the link, or keep it private and add you as a collaborator?

NaturallyAsh avatar Jun 20 '23 13:06 NaturallyAsh