-
-
Notifications
You must be signed in to change notification settings - Fork 978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Rmd files in subdirectories and common lib_dir #146
Comments
FYI: I went to stackoverflorw with this issue. No answer yet though. |
One workaround is to create a (symbolic) link for each lib directory output, that points to the real lib directory. The files are still written many times, of course. |
The current design assumes a single root directory for documents that want to share a lib_dir. It would be pretty involved to reverse this assumption, so I'd recommend you do something based on symbolic links for now. |
In the example above, the files are in a common root directory, So it seems that in addition to a common root directory, you need to have all |
Yes, that's exactly what I meant. On Thu, Jul 10, 2014 at 12:50 PM, Gabor Csardi [email protected]
|
👍 |
This is a strange restriction.If I have understood it correct, the |
I have the same issue. I organize my reveal.js slides for a semester in a directory structure:
This lets me keep a consistent structure for each lecture. This worked fine with RMarkdown for several years until Pandoc 2.9, when modifications to html_dependencies() broke my structure because RMarkdown insists on creating a file header-attrs.js and I am not given an option of specifying a path to a static version of header-attrs.js. If I use pandoc 2.7.x, RMarkdown works fine with my directory structures, but if I use any later version of Pandoc I get the same error message about relativeTo(). |
@jonathan-g , this is a pretty old issue (2014). The fact that something broke with new pandoc make me thing there is something to fix. Thank you ! |
Sure. |
Could you please post a link to the new issue here? |
I just submitted a new issue #1859. I took some time to investigate this more carefully and to write up the new issue carefully before submitting it. I think a small PR can enhance rmarkdown to support this kind of non-standard directory structure (see the fork at https://github.com/jonathan-g/rmarkdown/tree/minimal-tree-fix). |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
I have a bunch of Rmd files, spread in some subdirectories, e.g.
I want to convert them to HTML, and use a common
lib_dir
for all of them. The problem is, that if I dothen the
lib
directory (and more importantly the the references in the generated HTML accordingly) end up inaaa/bbb/lib
, which is obviously not what I want.If I try
then I get
Is there a way to create a common
lib_dir
for these files, and still get the links in the HTML files right?The text was updated successfully, but these errors were encountered: