I've uploaded one Rmarkdown file to Github (as a .md file). At first, it was OK, but when i checked it a few days ago it was just out of format, just like it is now:
But when i go to Edit>Preview on GitHub, it just shows as I expect it to behave (and as it was at the first time i uploaded this project and as my RmarkDown file is):
Any tips on how to solve it?
Thanks in advance!
Related
I created a R markdown file on R Studio enter image description here and used the Knit function to create an html file. Eventually, .md file and html files were created in my working directory. Also, a figures folder/directory was created automatically. And hence, I pushed all the changes made to my GitHub repository.
Now, my problem here is when I open the .md (markdown) file on GitHub, it doesn't view the plots
enter image description here
You have to push images to the GitHub repo. Images cannot be viewed because they are missing.
I am working on a color package for the company I work for. It contains a table to see the color of the company in an interactive way, with the actual color under the hex code (see picture below).
This works fine as long as I compile my rmd locally. However, when the file is compiled on Github, the underlying color disappears (see https://github.com/qwertzlbry/bsscol or picture below).
Does anyone know why Github is not displaying my table correctly?
The entire rmd file including all codes can be found at https://github.com/qwertzlbry/bsscol, any help on this topic is greatly appreciated.
It appears the differences are due to two different renders. From what I can see, kable_paper outputs a Markdown text-document. When you are viewing it, something is rendering it into HTML, where the <span>-tag is allowed.
In the second screenshot, on GitHub, it is GitHub that is rendering the Markdown document into HTML. Alas, the GitHub Flavored Markdown does not support the <span> tag. So it simply ignores it.
I am writing a Rmd file, where it contains some knitted images. The Rmd file shows stuffs just as expected when looking at them on my own computer, but it cannot show the inserted images when uploaded to my github.
To knit the inserted images, I used here() function:
knitr::include_graphics(c(here("data/images/experiments_areaId2ad4/plots", "scatter_old.png"), here("data/images/experiments_areaId2ad4/plots", "scatter_new.png")))
On the github, the images cannot be shown, and as most html, there are tiny placeholders at the positions of each of the images. When I clicked on one of the place holder, it led me to a webpage that was 404.
I looked at the URL, it is like:
https://github.com/[my_github_account]/[my_github_repo]/blob/master/Users/[myname]/Desktop/[my_local_path]/[my_github_repo]/my_reports/data/images/experiments_areaId2ad4/plots/scatter_new.png
Obviously it has copied my local path from my computer to the github, so that the paths of these images are definitely not valid anymore.
However, I still want to use the here() function, so that when my collaborators pull my github updates, they can still interact with my projects without having to worry about screwing up directory.
Does anyone have a suggestion?
Thanks!
I have an .rmd file containing working code for a Shiny interactive knitr/rmarkdown doc. I want this doc to run via GitHub pages.
How do I do this? (Can someone walk me through the steps clearly and fully).
I understand I have to create a gh-pages branch and upload the files there. However, I don't understand what to do with my .rmd file. Do I simply just resave it as an .html file? Or does an html file have to contain something in addition to the rmd file?
Please help explain this to me -- I've spent all day trying to figure this out, but I can;t get anything to work right :(.
Prior effort: I tried following the lead given by this SO.post, but the best I can get is a screen full of block text. No formatting, code or images show up. Just the whole document's text.
I used itextsharp library to generate and fill PDF files however; the issue i am having is when you open some of these files in Chrome i get the image below but it does work perfectly fine in IE
I found my own answer, it turned out that when i save the file to the Db i did not add the .pdf as an extension to the file that's why it was coming like that.
because the form data is saved first then retrieved later.
Thanks for the replies.