History: R_test

Preview of version: 46

R_test intends to be an easy way of testing PluginR development (http://dev.tikiwiki.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 an page with a program in R language has to process it and produce some output for that user.

There are 3 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.
  • Test4 (to be implemented yet). Testing the process of allowing the user to edit some params of a graph produced by some simple R script.


These pages will be created:


YAML
preferences: feature_trackers: y feature_user_watches: y wikiplugin_r: y instructions: r_test1 objects: - type: tracker ref: r_test_tracker1 data: name: Datasets description: Standard dataset tracker default_status: open show: [ status, creation_date, modification_date, list_modification_date ] allow: [ comments, 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, mandatory ] order: 20 - type: tracker_field ref: r_test_from data: name: From user tracker: $r_test_tracker1 type: user 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, mandatory, link ] 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, mandatory, link ] 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 Admins: description: Have all rights allow: [ admin ]



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_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 send datasets 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


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


Extra features enabled for this wiki side menu

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 wikiplugin_img: y wikiplugin_div: y wikiplugin_listpages: y wikiplugin_titlesearch: y wikiplugininline_div: y wikiplugininline_img: y wikiplugininline_listpages: y wikiplugininline_titlesearch: y


Todo

  • add attachment field
  • send to page with R program to process the data in the attId

Links

History

Information Version
Wed 09 of Jun, 2010 12:40 GMT-0000 Xavier de Pedro 69
Wed 09 of Jun, 2010 12:34 GMT-0000 Xavier de Pedro new page for instructions added 68
Tue 08 of Jun, 2010 17:32 GMT-0000 Xavier de Pedro 67
Tue 08 of Jun, 2010 17:29 GMT-0000 Xavier de Pedro 66
Tue 08 of Jun, 2010 17:19 GMT-0000 Xavier de Pedro disable view tpl 65
Tue 08 of Jun, 2010 15:33 GMT-0000 Xavier de Pedro 64
Tue 08 of Jun, 2010 14:24 GMT-0000 Xavier de Pedro 63
Tue 08 of Jun, 2010 09:40 GMT-0000 Xavier de Pedro removed the link param from xmin and xmax tracker fields 62
Tue 08 of Jun, 2010 08:44 GMT-0000 Xavier de Pedro 61
Tue 08 of Jun, 2010 08:37 GMT-0000 Xavier de Pedro 60
Tue 08 of Jun, 2010 08:36 GMT-0000 Xavier de Pedro added the sections bit for content templates 59
Tue 08 of Jun, 2010 08:24 GMT-0000 Xavier de Pedro re-added the content template report, and edited the users definition 58
Tue 08 of Jun, 2010 08:20 GMT-0000 Xavier de Pedro temporarily removing the content template section, to see if this part is the one causing the "profile issues" report: syntax error: data: Array. Needs a 'type' and 'data'field 57
Tue 08 of Jun, 2010 08:16 GMT-0000 Xavier de Pedro 56
Tue 08 of Jun, 2010 08:09 GMT-0000 Xavier de Pedro removed false array in content template section , and added maketoc 55
Tue 08 of Jun, 2010 07:55 GMT-0000 Xavier de Pedro 54
Tue 08 of Jun, 2010 07:11 GMT-0000 Xavier de Pedro 53
Mon 07 of Jun, 2010 19:30 GMT-0000 Xavier de Pedro added missing feature to view tpl's and added reference for 4th page 52
Mon 07 of Jun, 2010 19:22 GMT-0000 Xavier de Pedro added use as template to editors as global perm also 51
Mon 07 of Jun, 2010 19:20 GMT-0000 Xavier de Pedro added features and perms for content templates and smarty templates 50
Mon 07 of Jun, 2010 17:57 GMT-0000 Xavier de Pedro added trust_input to group editors to try to avoid them to have to validate each single plugin call 49
Mon 07 of Jun, 2010 13:41 GMT-0000 Xavier de Pedro 48
Mon 07 of Jun, 2010 13:37 GMT-0000 Xavier de Pedro 47
Mon 07 of Jun, 2010 11:31 GMT-0000 luciash d' being 🧙 46
Mon 07 of Jun, 2010 11:01 GMT-0000 luciash d' being 🧙 45