Running R Markdown documents with RStudio and publish them via GitHub, using GitHub Pages #67765
Unanswered
TanishqKaushik
asked this question in
New to GitHub
Replies: 1 comment 5 replies
-
Hi there 👋🏼 - I'm going to look into this for you, hang tight! |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to figure out how to display R Markdown files on GitHub online. I have gone through this entire tutorial - "https://resources.github.com/github-and-rstudio/" a few times however, every time I try to create a new branch and make local changes with git using this code - "knit: (function(input_file, encoding) {
out_dir <- 'docs';
rmarkdown::render(input_file,
encoding=encoding,
output_file=file.path(dirname(input_file), out_dir, 'index.html'))})"
I get an error stating that the directory does not exist. I have tried using getwd() and setwd() to confirm if the directory is right however it still says that the directory does not exist.
I have tried manually adding the docs folder in the directory to populate it with the html output but git on RStudio does not even recognize it as a change that needs to be committed.
Beta Was this translation helpful? Give feedback.
All reactions