Branch creator: Difference between revisions
(user interface split into newpage, newdata, and newformula) |
(temporary step 3 added) |
||
Line 26: | Line 26: | ||
=== Step 2: Fill in data about your branch === | === Step 2: Fill in data about your branch === | ||
In step 2, you can create a new branch page or add more ovariables to an existing page. Fill in the form below, click to create content for the page, and copy-paste that onto the page you created in step 1 | In step 2, you can create a new branch page or add more ovariables to an existing page. Fill in the form below, click to create content for the page, and copy-paste that onto the page you created in step 1. | ||
Each branch is a model that consists of sub-models called ovariables. If you don't know what they are, you should first read pages [[ | Each branch is a model that consists of sub-models called ovariables. If you don't know what they are, you should first read pages [[Ovariable]] and [[Modelling in Opasnet]]. | ||
If you need more ovariables for your branch model, you can simply rerun this code. Just remember to copy-paste the previous content first, as it will be replaced by the new ovariables. Each ovariable has its own sub-heading under the heading "Rationale". | |||
<rcode name="fill" label="Create content for the branch" recall_inputs=1 variables=" | <rcode name="fill" embed=1 label="Create content for the branch" recall_inputs=1 variables=" | ||
name:newpage|description:Do you want to create content for a new branch page?|type:selection|options:FALSE;No;TRUE;Yes|default:FALSE| | name:newpage|description:Do you want to create content for a new branch page?|type:selection|options:FALSE;No;TRUE;Yes|default:FALSE| | ||
name:newdata|description:Do you want to create content for a new ovariable with data?|type:selection|options:FALSE;No;TRUE;Yes|default:FALSE| | name:newdata|description:Do you want to create content for a new ovariable with data?|type:selection|options:FALSE;No;TRUE;Yes|default:FALSE| | ||
Line 41: | Line 41: | ||
name:intermediate.ovariable|description:Give a short name (no spaces!) for an ovariable with data|type:text| | name:intermediate.ovariable|description:Give a short name (no spaces!) for an ovariable with data|type:text| | ||
category:Content for a new ovariable with data|category_conditions:newdata;TRUE| | category:Content for a new ovariable with data|category_conditions:newdata;TRUE| | ||
name:t2bdata|description:Give a data table for the input variable|type:table| | name:t2bdata|description:Give a data table for the input variable (under construction!)|type:table| | ||
name:intermediate.rationale|description:Give free-text rationale about what the intermediate variable is and how it is calculated.|type:textbox| | name:intermediate.rationale|description:Give free-text rationale about what the intermediate variable is and how it is calculated.|type:textbox| | ||
name:output.ovariable|description:Give a short name (no spaces!) to an ovariable with a formula.|type:text| | name:output.ovariable|description:Give a short name (no spaces!) to an ovariable with a formula.|type:text| | ||
Line 236: | Line 236: | ||
oprint(text2, include.rownames = FALSE) | oprint(text2, include.rownames = FALSE) | ||
</rcode> | </rcode> | ||
=== Step 3. Finalize the page === | |||
In step 2, page content is created. However, there is a tiny error that has not yet been fixed. In the text produced, there is an extra space in tags "< rcode" and "< /rcode". You should find and replace them with "<rcode" and "</rcode", respectively. Then you can save your page. | |||
== See also == | |||
* [[Handprinter]] | |||
* [[Ovariable]] | |||
* [[Modelling in Opasnet]] | |||
== Related files == |
Revision as of 08:19, 7 March 2016
Moderator:Jouni (see all) |
|
Upload data
|
Question
How to create a branch for handprinter?
Answer
Step 1: Create a page for branch
If the branch that you are working with already has a page, open the page for editing and go to step 2.
Open two copies of this page to your browser.
Give a name to your branch and click to create a new page for it.
On the other page, continue from step 2.
<createbox> break=yes width=50 buttonlabel=Create branch align=left </createbox>
Step 2: Fill in data about your branch
In step 2, you can create a new branch page or add more ovariables to an existing page. Fill in the form below, click to create content for the page, and copy-paste that onto the page you created in step 1.
Each branch is a model that consists of sub-models called ovariables. If you don't know what they are, you should first read pages Ovariable and Modelling in Opasnet.
If you need more ovariables for your branch model, you can simply rerun this code. Just remember to copy-paste the previous content first, as it will be replaced by the new ovariables. Each ovariable has its own sub-heading under the heading "Rationale".
Step 3. Finalize the page
In step 2, page content is created. However, there is a tiny error that has not yet been fixed. In the text produced, there is an extra space in tags "< rcode" and "< /rcode". You should find and replace them with "<rcode" and "</rcode", respectively. Then you can save your page.