Branch creator: Difference between revisions
Jump to navigation
Jump to search
(→Answer: partly works) |
(→Step 2: Fill in data about your branch: maybe works) |
||
Line 46: | Line 46: | ||
#dependencies <- c("vegeproduction", "wasteproduction", "waterconsumption") | #dependencies <- c("vegeproduction", "wasteproduction", "waterconsumption") | ||
#output.rationale <- "Garden tower composts kitchen waste and turns it into soil." | #output.rationale <- "Garden tower composts kitchen waste and turns it into soil." | ||
#intermediate.rationale <- "vegeproduction is the amount of vegetables produced in the garden tower. It is a critical | #intermediate.rationale <- "vegeproduction is the amount of vegetables produced in the garden tower. It is a critical benefit that reduces consumption of other products and thus footprint." | ||
#<t2b name='Tire inflation parameters' index='Parameter,Unit' obs='Result' unit='-'> | #<t2b name='Tire inflation parameters' index='Parameter,Unit' obs='Result' unit='-'> | ||
Line 61: | Line 61: | ||
{{method|moderator=", | {{method|moderator=", | ||
wiki_username, | wiki_username, | ||
"}}", | "}} | ||
", | |||
"'''{{PAGENAME}}''' is a '''branch''' of Handprinter. This page is a test case how to manage branches. | "'''{{PAGENAME}}''' is a '''branch''' of Handprinter. This page is a test case how to manage branches. | ||
== Question == | == Question == | ||
How to estimate the life-cycle impacts of {{PAGENAME}}? | How to estimate the life-cycle impacts of '''{{PAGENAME}}'''? | ||
== Answer == | == Answer == | ||
@rcode embed=1 variables=' | |||
name:PAGEID|type:hidden|default:`{{PAGEID}}` | name:PAGEID|type:hidden|default:`{{PAGEID}}` | ||
'> | |||
# This is code Op_enXXXX/ on page [[", | # This is code Op_enXXXX/ on page [[", | ||
branchname, | branchname, | ||
Line 78: | Line 80: | ||
library(OpasnetUtils) | library(OpasnetUtils) | ||
objects.latest('Op_en', | objects.latest(paste('Op_en', PAGEID, sep = ''), code_name = '", | ||
PAGEID, | |||
', code_name = '", | |||
output.ovariable, | output.ovariable, | ||
"') | "') | ||
Line 146: | Line 146: | ||
", | ", | ||
output.rationale, | output.rationale, | ||
" | |||
", | |||
"=== ", | "=== ", | ||
intermediate.ovariable, | intermediate.ovariable, | ||
Line 180: | Line 182: | ||
cat('", | cat('", | ||
intermediate.ovariable, | intermediate.ovariable, | ||
"stored. | "stored.@@') | ||
", | |||
"@/rcode> | "@/rcode> | ||
", | ", | ||
intermediate.rationale, | intermediate.rationale, | ||
" | " | ||
", | |||
"== See also == | "== See also == | ||
Line 194: | Line 199: | ||
sep = "") | sep = "") | ||
text2 <- strsplit(text1, split = "\n")[[1]] | text2 <- strsplit(text1, split = "\n")[[1]] | ||
text2 <- gsub("@@", "\n", text2) | |||
text2 <- gsub("@", "<", text2) | |||
text2 <- data.frame(Pagetemplate = text2) | text2 <- data.frame(Pagetemplate = text2) | ||
oprint(text2, include.rownames = FALSE) | oprint(text2, include.rownames = FALSE) | ||
</rcode> | </rcode> |
Revision as of 17:14, 5 March 2016
Moderator:Jouni (see all) |
|
Upload data
|
Question
How to create a branch for handprinter?
Answer
Step 1: Create a page for branch
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
Fill in the form below, click to create the content for the page, and copy-paste that onto the page you created in step 1. Save the page.