Conversation
Thanks! I am traveling this whole week but I will get back to this over the weekend. And thanks much for your support. |
Sounds good. It is a simple change but you may need some time to think about the consequences. I have tested both blogdown and other R Markdown documents, and they seem to still work well. |
Yeah it's mostly to test out every possible R Markdown format. |
I am testing this now, and so far works with rmarkdown, rmarkdown-website, xaringan, flexdashboard. |
I'll address the bookdown issue in bookdown when I have more time. You won't need any changes in widgetframe. |
I just tested this with blogdown and it works perfectly if the method is 'html', but doesn't work if the method is |
You are correct. It does not work with |
@yihui Thanks for the fix. One more small point the URL to the iframed widget HTML works only when the site is deployed on the root. When the site is deployed in a level below the root, i.e. http://www.abcd.com/blog/, then the URL to the child widget HTMLs is wrong. This is not a big issue as I really doubt if many people will deploy their blogs to non root path. Thanks again for your help! |
I'm still getting an error in my file, and I think it has something to do with @bhaskarvk most recent comment. I'm trying to use a widgetframe with datatable in a .Rmarkdown that lies within my /pages subdirectory. The frame just pulls up my 404 page. I'm also running on the future-imperfect theme, which I know has had some trouble in the past. Any solutions? |
It should work unless you have set |
@elliottmorris could you share your config files and where you deploy your site? |
I tried setting Attempting to display the widget at http://www.thecrosstab.com/trump-tracker/. Attached is my config.toml in text format. EDIT: there seems to have been a corrupted download for blogdown. Have reinstalled, restarted, rebuilt and it all works now. Thanks for the tip on relativesurl. |
Okay, glad to hear that. |
FWIW I don't think |
@bhaskarvk When |
I actually don't have a /blog/ folder and set permalink to match Jekyll structure (:year/:month/:day/:slug) so this doesn't show up either way
… On Aug 9, 2017, at 12:51 AM, Yihui Xie ***@***.***> wrote:
@bhaskarvk When relativeurls = false, you should get /blog/post/... instead of /post/.... Could you test with the latest version of blogdown?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I am suffering from the same behavior. |
IIRC, you should specify the subdirectory in the `baseURL` field of your `config.toml`, IE:
`baseURL: abcd.com/website/`
This is covered more extensively in @yihui’s blowdown book: https://bookdown.org/yihui/blogdown/configuration.html
|
This will fix rstudio/blogdown#38.