Cannot publish to server with additional files in parent or adjacent folders

Issue: When using the Publish to Server option for an RMarkdown document within RStudio, I am unable to publish a document to server if it requires files that are held in either a parent or adjacent folder. Files are limited to the same folder, or a sub-folder, of the document being published.

07_57_36

Request: Add functionality to allow additional files to be included (even if added manually) that sit in a parent or adjacent folder, e.g. allow the following to be valid:

project/
├── documents/
│   └── documentname.rmd
└── data/
    ├── datafile1.csv
    └── datafile2.csv

Where documentname.rmd refers to data/datafile1.csv and datafile2.csv.

This is useful when for reproducible research workflows, such as the CookieCutter for Data Science structure.


Thanks!
Josh

Hi Josh! Welcome!

If you’d like to submit this as a feature request, here's your starting point:
RStudio IDE Guide: Writing Good Feature Requests

I can see what you mean about the use case! It's absolutely true that lots of reproducible research project skeletons expect that R Markdown files will be in a sub-folder of the project, not the root folder. Off the top of my head (and in no particular order):