It's better when it's simple

User Tools

Site Tools


Table of Contents

rstudio Plugin

Compatible with DokuWiki


plugin For use with ckgedit to facilitate the copying of RStudio code blocks into the ckgeditor.

Last updated on

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Tagged with r, rstudio


Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.


Using Firefox (or Chrome), it is possible to copy a simple 1) html page with RStudio code blocks and paste it into ckgedit's editing window, and it can then be saved as a Dokuwiki file. In order to copy the RStudio code blocks without error, it is necessary to remove any internal formatting that occurs inside the RStudio code blocks. This is done by clicking the ckgedit's select-all tool and then clicking the unformat tool: The page and its diagrams will then save correctly. See the following video:

Howewever, the RStudio code will not have highlighting. That is the purpose of this plugin. Before saving, at the top of the RStudio page, enter the following macro: ~~R_STUDIO~~. After the page is saved consider removing the macro to prevent unnecessary processing.

This plugin also fixes rstudio code blocks that the ckgedit parser mistakes for Dokuwiki file blocks, making for corrupted code blocks in which the opening tag is <code> but the closing tag is </file>.

i.e. not one with complex styling and structure, or requiring javascript
plugin/rstudio.txt · Last modified: 2018-05-29 23:40 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki