You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
```{r echo = FALSE}
github_baseurl <- 'https://github.com/jeromyanglim/gelman-bayesian-data-analysis/raw/master/'
filepath <- strsplit(getwd(), '/')[[1]]
# assumes that markdown file is stored in a folder below master
markdown_folder <- filepath[length(filepath)]
image_base_url <- paste0(github_baseurl, markdown_folder, '/')
opts_knit$set(base.url=image_base_url)
```
However, this needs to be done at the very end otherwise preliminary compilations will not display properly on the local computer because the images are not available on github.
Thus, I'm looking for a general solution to this problem.
This also links into my general need to have a single makefile that will convert rmd files to md files in all folders of a repo with github friendly images.
The text was updated successfully, but these errors were encountered:
I have a few github repositories that have multiple R Markdown files with each R Markdown file in a separate folder.
I want to be able upload these repositories and I want the images to display when someone clicks on a Markdown file.
At the moment, it's accessing the
blob
version and not theraw
version, which is causing issues.I asked about a general solution to the problem on Stack Overflow.
A general solution is to change the
base.url
settingFor one particular file I wrote the following:
However, this needs to be done at the very end otherwise preliminary compilations will not display properly on the local computer because the images are not available on github.
Thus, I'm looking for a general solution to this problem.
This also links into my general need to have a single makefile that will convert rmd files to md files in all folders of a repo with github friendly images.
The text was updated successfully, but these errors were encountered: