DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:rstudio

Table of Contents

rstudio Plugin

Compatible with DokuWiki

  • 2016-06-26 "Elenor Of Tsort" unknown
  • 2015-08-10 "Detritus" yes
  • 2014-09-29 "Hrun" yes
  • 2014-05-05 "Ponder Stibbons" unknown

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

Last updated on
2015-12-25
Provides
Action
Repository
Source

Tagged with r, rstudio

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Usage

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>.

1)
i.e. not one with complex styling and structure, or requiring javascript
plugin/rstudio.txt · Last modified: 2016-01-13 14:35 by Aleksandr