Skip to content
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

Problem in rendering trelliscope graph in .md github file #106

Open
vivvi87 opened this issue Jan 31, 2021 · 1 comment
Open

Problem in rendering trelliscope graph in .md github file #106

vivvi87 opened this issue Jan 31, 2021 · 1 comment

Comments

@vivvi87
Copy link

vivvi87 commented Jan 31, 2021

Hello,
I made a R markdown file containing a trelliscope graph and I would like to get an md file that can be seen in github.
In order to render trelliscope on the Rmd I need the following yalm:

    title: "Worldwide Covid-19 incidence over time"
    date: "`r format(Sys.time(), '%d %B %Y')`"
    output:
       html_document:
          keep_md: true
          self_contained: false
          lib_dir: rmarkdown_files

Though this does not render well as md file in github. I tried to add:

    title: "Worldwide Covid-19 incidence over time"
    date: "`r format(Sys.time(), '%d %B %Y')`"
    output:
       github_document:
       html_document:
          keep_md: true
          self_contained: false
          lib_dir: rmarkdown_files

But I get an error message:

PhantomJS not found. You can install it with webshot::install_phantomjs(). If it is installed, please make sure the phantomjs executable can be found via the PATH variable.
output file: Covid_timeline_wrld.knit.md

Error: Functions that produce HTML output found in document targeting gfm output.
Please change the output type of this document to HTML. Alternatively, you can allow
HTML output in non-HTML formats by adding this option to the YAML front-matter of
your rmarkdown file:

  always_allow_html: true

Note however that the HTML output will not be visible in non-HTML formats.

In addition: There were 50 or more warnings (use warnings() to see the first 50)
Execution halted

Does anyone know how I can solve the issue?
Thanks

@vivvi87
Copy link
Author

vivvi87 commented Feb 2, 2021

I have also tried to simply publish the Markdown document (which is rendered fine locally) on Rpubs and the trelliscope graph do nor render.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant