jaredlander / wordpressr

An R package for using the WordPress API and integrating RMarkdown
Other
1 stars 0 forks source link

A WIP R package for publishing R Markdown to WordPress with the REST API V2 #1

Open maelle opened 4 years ago

maelle commented 4 years ago

:wave: @jaredlander! You might be interested in https://github.com/maelle/goodpress where I've experimented with the REST API V2 and WordPress. https://rmd-wordpress.eu/post-rmd/ including media was posted from R. Any feedback is welcome :-)

jaredlander commented 4 years ago

Thank goodness you wrote this since my attempt was not going anywhere.

The biggest issue I've been having with WordPress is getting plots and other such collateral onto WordPress. Which often means knitting and HTML fragment then manually pasting it into the WordPress editor and uploading images. It's terrible.

I'll try your package for the next post I write.

maelle commented 4 years ago

Cool! I think you might have been using another version of the REST API. For instance now it's available on all WordPress websites -- provided you can install an authentication plugin (so not on free/cheap wordpress.com plans).

My current approach for images is

It's a bit wasteful (since some images haven't changed when you update a post, so don't need to be deleted+re-uploaded), so I've been thinking about a more intricate approach https://github.com/maelle/goodpress/issues/2

What I haven't explored are things like HTML widgets (I don't use HTML widgets, nor WordPress for that matter :joy: -- hence the feedback of actual users being so important :slightly_smiling_face: ).