History: R_test

Preview of version: 78

R_test seeks to be an easy way of testing PluginR (http://dev.tiki.org/PluginR) on advanced usage, where a basic pretty tracker workflow is needed for users to upload a file with data to be processed, and a page with a program in R language has to process it and produce some output for that user.

There are 4 sets of tests for the time being:
  • Test1. Testing procedure to process csv file with data through an R script in a wiki page, by means of submitting a new tracker item with that csv file as attachment.
  • Test2. Testing many basic R commands with good and wrong syntaxes. some of them include Pretty Tracker display through .tpl file on disk as template.
  • Test3. Testing the process of allowing the user to chose some params to be used in some simple R script. Uses a Pretty Tracker with template in a wiki page. The user is allowed to edit params for the graph generated by the R script.
  • Test4. Testing security param.

This menu will be created also: Profile_r_test_menupage



These pages will be created:
(listed properly only when shown here: http://profiles.tiki.org/r_test , not when you are at profile installation in your remote tiki site)

Trackers


YAML
preferences: feature_trackers: y feature_user_watches: y feature_view_tpl: n feature_edit_templates: y feature_wiki_templates: y wikiplugin_r: y wikiplugin_rr: y instructions: Welcome to Plugin R objects: - type: tracker ref: r_test_tracker1 data: name: Datasets description: Files with data (like csv) to be processed by R scripts through tracker plugin calls default_status: open show: [ status, creation_date, modification_date, list_modification_date ] allow: [ comments, one_item_per_user, attachments ] - type: tracker_field ref: r_test_summary data: name: Summary tracker: $r_test_tracker1 type: text_field flags: [ searchable, public, list, mandatory, link ] order: 10 - type: tracker_field ref: r_test_description data: name: Description tracker: $r_test_tracker1 type: text_area options: 1 flags: [ public ] order: 20 - type: tracker_field ref: r_test_from data: name: From user tracker: $r_test_tracker1 type: user options: 1 flags: [ searchable, public, list ] order: 30 - type: tracker_field ref: r_test_attachment data: name: Dataset file tracker: $r_test_tracker1 type: attachment flags: [ searchable, public, list ] order: 40 - type: tracker_field ref: r_test_xmin data: name: Minimum value for axis X tracker: $r_test_tracker1 type: text_field flags: [ searchable, public, list ] order: 50 - type: tracker_field ref: r_test_xmax data: name: Maximum value for axis X tracker: $r_test_tracker1 type: text_field flags: [ searchable, public, list ] order: 60


Groups & Permissions


YAML
permissions: Anonymous: allow: view deny: [ ] Registered: description: Will be ignored because group is already created allow: - create_tracker_items - list_trackers - view_trackers - watch_trackers deny: [ ] objects: - type: wiki_page id: r_test3_template01 allow: use_as_template Editors: description: Trusted users allow: - modify_tracker_items - trust_input - view_templates - edit_templates - use_content_templates - edit_content_templates - admin_content_templates - use_as_template Admins: description: Have all rights allow: - admin - trust_input


Users and group assignations


YAML
objects: - type: users data: name: user pass: 1234 - type: users data: name: admin group: [ Editors ]


Sample data


YAML
objects: - type: tracker_item ref: dataset_001 data: tracker: $r_test_tracker1 status: open values: - [ $r_test_summary, Sample dataset ] - [ $r_test_from, admin ] - [ $r_test_description, "This dataset was created as part of the sample data for r_test." ] - [ $r_test_attachment, ] - [ $r_test_xmin, 1] - [ $r_test_xmax, 10] - type: tracker_item ref: dataset_002 data: tracker: $r_test_tracker1 status: pending values: - [ $r_test_summary, We are working on this dataset ] - [ $r_test_from, admin ] - [ $r_test_description, "This will soon be changed" ] - [ $r_test_attachment, ] - [ $r_test_xmin, 21] - [ $r_test_xmax, 30] - type: tracker_item ref: dataset_003 data: tracker: $r_test_tracker1 status: closed values: - [ $r_test_summary, A really old dataset ] - [ $r_test_from, admin ] - [ $r_test_description, "This dataset is outdated." ] - [ $r_test_attachment, ] - [ $r_test_xmin, 100] - [ $r_test_xmax, 110]


Modules

YAML
objects: - type: module ref: module_last_modif_tracker_items data: name: last_modif_tracker_items groups: [ Anonymous, Registered ] position: right order: 5 params: trackerId: $r_test_tracker1 name: Summary



Wiki pages


YAML
preferences: enable: [ feature_wiki ] objects: - type: wiki_page ref: r_test_instructions_page data: name: Welcome to Plugin R description: Basic intructions of PluginR and this profile lang: en mode: create_or_update content: wikicontent:Profile_r_test_instructions - type: wiki_page ref: r_test1_page data: name: r_test1 description: Interface to send datasets lang: en mode: create_or_update content: wikicontent:Profile_r_test1 - type: wiki_page ref: r_test1_analysis_page data: name: r_test1_analysis description: Interface to show the results from the analysis lang: en mode: create_or_update content: wikicontent:Profile_r_test1_analysis - type: wiki_page ref: r_test2_page data: name: r_test2 description: Interface to test several things lang: en mode: create_or_update content: wikicontent:Profile_r_test2 - type: wiki_page ref: r_test2_template01_page data: name: r_test2_template01 description: Template for smarty tpl on disk lang: en mode: create_or_update content: wikicontent:Profile_r_test2_template01 - type: wiki_page ref: r_test3_page data: name: r_test3 description: Interface to change graph params and display png lang: en mode: create_or_update content: wikicontent:Profile_r_test3 - type: wiki_page ref: r_test3_template01_page data: name: r_test3_template01 description: Template for wiki page lang: en mode: create_or_update content: wikicontent:Profile_r_test3_template01 - type: wiki_page ref: r_test4_page data: name: r_test4 description: Interface to test security checks lang: en mode: create_or_update content: wikicontent:Profile_r_test4


Content Templates for pre-defined reports


YAML
objects: - type: template ref: content_template_report_01 data: name: Report 01 content: wikicontent:Profile_r_test_ContentTemplate_Report_01 sections: [ wiki ]


Useful navigational aid

Wiki Page for the Menu

This will add the page Profile_r_test_menupage as the menu content

YAML
objects: - type: wiki_page ref: r_test_menupage_include data: name: Menu for R tests description: Collaborative simple menu lang: en mode: create_or_update content: wikicontent:Profile_r_test_menupage


Module wiki side menu

YAML
objects: - type: module ref: module_menupage data: name: menupage position: right groups: [ Anonymous, Registered ] order: 2 params: pagemenu: Menu for R tests


Extra features enabled for this profile

Add smileys for an easy way to add icons for bullets in the wiki page menu, without making them too much on the right.
YAML
preferences: feature_smileys: y feature_search_fulltext: y wikiplugin_div: y wikiplugin_group: y wikiplugin_iframe: y wikiplugin_img: y wikiplugin_pluginmanager: y wikiplugin_listpages: y wikiplugin_titlesearch: y wikiplugininline_div: y wikiplugininline_group: y wikiplugininline_iframe: y wikiplugininline_img: y wikiplugininline_fade: y wikiplugininline_remarksbox: y wikiplugininline_pluginmanager: y wikiplugininline_listpages: y wikiplugininline_titlesearch: y



Links

History

Information Version
Thu 15 of Nov, 2012 00:59 GMT-0000 Xavier de Pedro added info on test6 94
Tue 10 of Jul, 2012 14:46 GMT-0000 Xavier de Pedro added ref to r_test6 93
Sun 13 of Nov, 2011 20:34 GMT-0000 Xavier de Pedro added a few prefs fro trackers to work in 8x, and i18n to allow easy translation of tiki interface by reviewers of this profile from non-native-english-speaking countries 92
Fri 19 of Aug, 2011 16:10 GMT-0000 Xavier de Pedro info about howto use profiles 87 - 91
Sun 07 of Aug, 2011 14:41 GMT-0000 Xavier de Pedro added info about test5 86
Thu 04 of Aug, 2011 16:31 GMT-0000 Xavier de Pedro added r_test5 85
Tue 26 of Jul, 2011 22:12 GMT-0000 Xavier de Pedro removing old message 84
Tue 26 of Jul, 2011 21:40 GMT-0000 Xavier de Pedro typo 81 - 83
Mon 18 of Jul, 2011 11:37 GMT-0000 Xavier de Pedro testing a feature which is missing in Tiki7, and categ. this page for tiki7 also 80
Mon 18 of Jul, 2011 08:13 GMT-0000 Xavier de Pedro added a new pref, and two notes 79
Mon 07 of Feb, 2011 14:44 GMT-0000 Xavier de Pedro added useful link 78
Tue 14 of Dec, 2010 11:26 GMT-0000 Xavier de Pedro typo 77
Tue 16 of Nov, 2010 15:18 GMT-0000 Xavier de Pedro added plugin rr 76
Tue 14 of Sep, 2010 11:17 GMT-0000 Xavier de Pedro added pref iframe 75
Tue 14 of Sep, 2010 02:43 GMT-0000 Marc Laporte cleaner 74
Thu 29 of Jul, 2010 23:36 GMT-0000 Xavier de Pedro 73
Thu 29 of Jul, 2010 08:08 GMT-0000 Xavier de Pedro 72
Sat 12 of Jun, 2010 09:48 GMT-0000 Xavier de Pedro applyied syntax reported by lph by email 71
Wed 09 of Jun, 2010 12:54 GMT-0000 Xavier de Pedro options for "one item per user" added 70