ClaudioZandonella / trackdown

R package for collaborative writing and editing of R Markdown (or Sweave) documents in Google Docs.
https://ClaudioZandonella.github.io/trackdown/
GNU General Public License v3.0
214 stars 14 forks source link

Integrate `redoc`-like feature #36

Open albert-ying opened 2 years ago

albert-ying commented 2 years ago

Hi, is it possible to integrate the feature like redoc https://noamross.github.io/redoc/, which allows collaborative editing on a formatted word (hence google doc) file?

This would be more 'friendly' when interacting with your non-nerd collaborators...

maelle commented 1 year ago

For reference https://github.com/noamross/redoc/issues/33

krlmlr commented 1 year ago

The linked redoc issue is a tall order. I'd be fine if we used formatting for the following components:

I believe most can be found with a very simple regex search and replace. We seem to be using already some of the features of the Google Docs API at https://developers.google.com/docs/api/how-tos/overview to achieve the highlighting.

Would you be open to an enhancement along those lines?

krlmlr commented 1 year ago

Also, code chunks could be typeset in a font with size 1 or smaller.

maelle commented 1 year ago

btw recently I heard about the docs API https://mastodon.social/@noamross@ecoevo.social/110078221869259228

krlmlr commented 1 year ago

We can use the googledrive package to upload/download a .docx file, and even store it as Google doc. Such a file could be created by converting a modified version of the .Rmd/.qmd file to .docx . Perfect roundtrip will be a bit tricky though, maybe we need some postprocessing during the .docx -> .Rmd/.qmd conversion.