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

Use relative path in the report #134

Open
JiaxiangBU opened this issue Mar 7, 2020 · 0 comments
Open

Use relative path in the report #134

JiaxiangBU opened this issue Mar 7, 2020 · 0 comments

Comments

@JiaxiangBU
Copy link

JiaxiangBU commented Mar 7, 2020

I try to use create_report to build a report and display it on the GitHub. But I find the rendered figures is under the absolute paths. So If I want to display a markdown document on the GitHub. It cannot display the unlinked figure.

Temporally, after using create_report, I manually the figure paths in the markdown document. So is there any suggestion I fix this in the create_report. I guess here::here is used in create_report.

I will add a reproducible example.

Here is the reproducible code.

https://github.com/JiaxiangBU/test-DataExplorer/blob/91f9f1c278b24d73a75de4607433549a5b9b80c5/analysis/sample.Rmd#L2-L4

In the markdown document, the figure path is absolute.
JiaxiangBU/test-DataExplorer@91f9f1c#diff-4093ad3d0ac407c51df5ad563a5ad529R22

![](D:/work/test-DataExplorer/output/df_files/figure-gfm/plot_intro-1.png)<!-- -->

After I change them into the relative way.

https://github.com/JiaxiangBU/test-DataExplorer/blame/91f9f1c278b24d73a75de4607433549a5b9b80c5/output/df.md#L22

![](D:/work/test-DataExplorer/output/df_files/figure-gfm/plot_intro-1.png)<!-- -->

The rendered markdown document works, here is the address https://github.com/JiaxiangBU/test-DataExplorer/blob/master/output/df.md

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