rOpenSci | Blog

All posts (Page 16 of 120)

rOpenSci News Digest, October 2023

Dev guide translation to Portuguese, R in government community call, multilingualism community call, coworking, new packages and package news

How to Translate a Hugo Blog Post with Babeldown

As part of our multilingual publishing project, and with funding from the R Consortium, we’ve worked on the R package babeldown for translating Markdown-based content using the DeepL API. In this tech note, we’ll show how you can use babeldown to translate a Hugo blog post!

🔗

Motivation

Translating a Markdown blog post from your R console is not only more comfortable (when you’ve already written said blog post in R), but also less frustrating. With babeldown, compared to copy-pasting the content of a blog post into some translation service, the Markdown syntax won’t be broken1, and code chunks won’t be translated. This works, because under the hood, babeldown uses tinkr to produce XML which it then sends to the DeepL API, flagging some tags as not to be translated. It then converts the XML translated by DeepL back into Markdown again.

...

rOpenSci News Digest, September 2023

WebAssembly in R-universe, champions program updates, coworking, new packages and package news

Working together to push science forward

Happy rOpenSci users can be found at