baranovskypd / goodpress

WIP!! :warning: R Package to Write Posts from R Markdown to Wordpress :warning:
https://maelle.github.io/goodpress/
Other
34 stars 5 forks source link

refactor: adapt code for deprecation warning #40

Closed maelle closed 1 year ago

maelle commented 1 year ago

Fix #34

@mdingemanse I don't have a Wordpress website at the moment so can't test it, would you have time to test it?

Also, friendly reminder that I'd gladly transfer the repository to the account of someone willing to maintain it. :innocent: Maybe that person could submit a proposal to the R Consortium https://www.r-consortium.org/all-projects/call-for-proposals (I could give feedback on that proposal, and mentor the new maintainer with general package development tips -- not WordPress tips)

mdingemanse commented 1 year ago

Works

remotes::install_github("maelle/goodpress", ref = "purrrr")
wordpress_url <- "______________"
today_post <- "test"
goodpress::wp_post(today_post, wordpress_url, encoding="UTF-8")

Output:

Post posted with status draft

No deprecation warning anymore

maelle commented 1 year ago

Awesome, thanks so much for testing this!