DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:rstudio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:rstudio [2015-10-22 03:27] – [About] turnermmplugin:rstudio [2018-05-29 23:40] (current) – [Installation] Klap-in
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description: +description: For use with ckgedit to facilitate the copying of RStudio code blocks into the ckgeditor.
 author     : Myron Turner  author     : Myron Turner 
-email      : turnermm03@shaw.ca  +email      : turnermm02@shaw.ca  
-type       :  +type       : action 
-lastupdate : 2015-10-22 +lastupdate : 2015-12-25 
-compatible : +compatible : hrun,detritus
 depends    :  depends    : 
 conflicts  conflicts 
 similar    :  similar    : 
-tags       : +tags       : R, RStudio
  
-downloadurl: http://github.com/turnermm/rstudio/zipball/master +downloadurl: https://github.com/turnermm/rstudio/zipball/master 
-bugtracker : http://github.com/turnermm/rstudio/issues +bugtracker : https://github.com/turnermm/rstudio/issues 
-sourcerepo : http://github.com/turnermm/rstudio/ +sourcerepo : https://github.com/turnermm/rstudio/ 
-donationurl: +donationurl: http://mturner.org/userfiles/donate.php  
  
  
Line 26: Line 26:
  
  
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 ===== Usage ===== ===== Usage =====
-Using Firefox (or Chrome), it is possible to copy an RStudio page 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:+Using Firefox (or Chrome), it is possible to copy a simple ((i.e. not one with complex styling and structure, or requiring javascript)) 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: {{  http://i1369.photobucket.com/albums/ag206/turnermm03/selectall_unformat_zpsidptxmvg.png?170  }} 
 +The page and its diagrams will then save correctly. See the following video:
      * https://www.youtube.com/watch?v=_es_hdQvU8c&feature=youtu.be      * https://www.youtube.com/watch?v=_es_hdQvU8c&feature=youtu.be
 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.  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>%%.
 +
 + 
plugin/rstudio.1445477259.txt.gz · Last modified: 2015-10-22 03:27 by turnermm

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