Skip to content

Commit d904699

Browse files
committed
Fix some model formatting issues and correct ViewTests
1 parent 33f73df commit d904699

20 files changed

Lines changed: 84 additions & 54 deletions

Code Examples/Extensions Examples/sr/boxplot-example.nlogox

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ end</code>
9595
<note x="18" y="295" backgroundDark="0" fontSize="11" width="459" markdown="false" height="33" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">this button will create two temp. lists, put them both into one R data.frame and creates a boxplot over both columns.</note>
9696
<note x="18" y="403" backgroundDark="0" fontSize="11" width="459" markdown="false" height="27" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">this button will close the graphics device (here: the plot window). But you can also just close the window.</note>
9797
</widgets>
98-
<info>## WHAT IS IT?
98+
<info><![CDATA[## WHAT IS IT?
9999
100100
This section could give a general understanding of what the model is trying to show or explain.
101101
@@ -129,7 +129,9 @@ This section could give the names of models in the NetLogo Models Library or els
129129
130130
## CREDITS AND REFERENCES
131131
132-
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.</info>
132+
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.
133+
134+
<!-- 2025 -->]]></info>
133135
<turtleShapes>
134136
<shape name="default" rotatable="true" editableColorIndex="0">
135137
<polygon color="-1920102913" filled="true" marked="true">

Code Examples/Extensions Examples/sr/datafile-example.nlogox

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ end]]></code>
8585
<note x="11" y="258" backgroundDark="0" fontSize="11" width="222" markdown="false" height="81" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Note: The R-Extension allows you to create a data.frame with a vector in each row of a column. This is not common in data.frames. Therefore, you have to mark this column as class "AsIs" by using the I(x) function for this column if you want to use write.table.</note>
8686
<button x="5" y="14" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="215" display="select path">set path user-new-file</button>
8787
</widgets>
88-
<info>## WHAT IS IT?
88+
<info><![CDATA[## WHAT IS IT?
8989
9090
This section could give a general understanding of what the model is trying to show or explain.
9191
@@ -119,7 +119,9 @@ This section could give the names of models in the NetLogo Models Library or els
119119
120120
## CREDITS AND REFERENCES
121121
122-
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.</info>
122+
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.
123+
124+
<!-- 2025 -->]]></info>
123125
<turtleShapes>
124126
<shape name="default" rotatable="true" editableColorIndex="0">
125127
<polygon color="-1920102913" filled="true" marked="true">

Code Examples/Extensions Examples/sr/diversity-example.nlogox

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ display-results</button>
220220
</pen>
221221
</plot>
222222
</widgets>
223-
<info>## WHAT IS IT?
223+
<info><![CDATA[## WHAT IS IT?
224224
225225
This section could give a general understanding of what the model is trying to show or explain.
226226
@@ -254,7 +254,9 @@ This section could give the names of models in the NetLogo Models Library or els
254254
255255
## CREDITS AND REFERENCES
256256
257-
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.</info>
257+
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.
258+
259+
<!-- 2025 -->]]></info>
258260
<turtleShapes>
259261
<shape name="default" rotatable="true" editableColorIndex="0">
260262
<polygon color="-1920102913" filled="true" marked="true">

Code Examples/Extensions Examples/sr/example1.nlogox

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ end</code>
6666
<output x="35" y="96" height="338" fontSize="12" width="755"></output>
6767
<button x="40" y="22" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="63">test</button>
6868
</widgets>
69-
<info>## WHAT IS IT?
69+
<info><![CDATA[## WHAT IS IT?
7070
7171
This section could give a general understanding of what the model is trying to show or explain.
7272
@@ -100,7 +100,9 @@ This section could give the names of models in the NetLogo Models Library or els
100100
101101
## CREDITS AND REFERENCES
102102
103-
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.</info>
103+
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.
104+
105+
<!-- 2025 -->]]></info>
104106
<turtleShapes>
105107
<shape name="default" rotatable="true" editableColorIndex="0">
106108
<polygon color="-1920102913" filled="true" marked="true">

Code Examples/Extensions Examples/sr/interactiveShell.nlogox

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ str(ag.df.glob)
5757
<note x="8" y="302" backgroundDark="0" fontSize="11" width="363" markdown="false" height="56" textColorDark="-1" textColorLight="-16777216" backgroundLight="0"><![CDATA[Note: If you want to assign a variable into the global environment you could use in NetLogo the "<<-" operator, like x <<- 10.2
5858
]]></note>
5959
</widgets>
60-
<info>## WHAT IS IT?
60+
<info><![CDATA[## WHAT IS IT?
6161
6262
This section could give a general understanding of what the model is trying to show or explain.
6363
@@ -91,7 +91,9 @@ This section could give the names of models in the NetLogo Models Library or els
9191
9292
## CREDITS AND REFERENCES
9393
94-
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.</info>
94+
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.
95+
96+
<!-- 2025 -->]]></info>
9597
<turtleShapes>
9698
<shape name="default" rotatable="true" editableColorIndex="0">
9799
<polygon color="-1920102913" filled="true" marked="true">

Code Examples/Extensions Examples/sr/linear_regression-example.nlogox

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ to go
6060
;; get the results back from R
6161
let bb sr:runresult "fm$coefficient[1]"
6262
let xx sr:runresult "fm$coefficient[2]"
63-
63+
6464
let b item 1 item 0 bb
6565
let x item 1 item 0 xx
66-
66+
6767
;; make a forecast for the next day
6868
let forecast b + x * 11
6969
if forecast < 0
@@ -117,7 +117,7 @@ end]]></code>
117117
<output x="504" y="37" height="417" fontSize="12" width="332"></output>
118118
<note x="506" y="8" backgroundDark="0" fontSize="12" width="150" markdown="false" height="25" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Forecast for next day</note>
119119
</widgets>
120-
<info>## WHAT IS IT?
120+
<info><![CDATA[## WHAT IS IT?
121121
122122
This section could give a general understanding of what the model is trying to show or explain.
123123
@@ -151,7 +151,9 @@ This section could give the names of models in the NetLogo Models Library or els
151151
152152
## CREDITS AND REFERENCES
153153
154-
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.</info>
154+
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.
155+
156+
<!-- 2025 -->]]></info>
155157
<turtleShapes>
156158
<shape name="default" rotatable="true" editableColorIndex="0">
157159
<polygon color="-1920102913" filled="true" marked="true">

Code Examples/Extensions Examples/sr/package-example.nlogox

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ end]]></code>
113113
<button x="197" y="55" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="83">clear-plot</button>
114114
<button x="99" y="54" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="85">test-pcf2</button>
115115
</widgets>
116-
<info>## WHAT IS IT?
116+
<info><![CDATA[## WHAT IS IT?
117117
118118
This section could give a general understanding of what the model is trying to show or explain.
119119
@@ -147,7 +147,9 @@ This section could give the names of models in the NetLogo Models Library or els
147147
148148
## CREDITS AND REFERENCES
149149
150-
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.</info>
150+
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.
151+
152+
<!-- 2025 -->]]></info>
151153
<turtleShapes>
152154
<shape name="default" rotatable="true" editableColorIndex="0">
153155
<polygon color="-1920102913" filled="true" marked="true">

Code Examples/Extensions Examples/sr/patchesToRMatrix.nlogox

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ end]]></code>
5151
<button x="7" y="64" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="124">sendPatchesToR</button>
5252
<button x="8" y="108" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="162" display="create and show matrix">createMatrix</button>
5353
</widgets>
54-
<info>## WHAT IS IT?
54+
<info><![CDATA[## WHAT IS IT?
5555
5656
This section could give a general understanding of what the model is trying to show or explain.
5757
@@ -85,7 +85,9 @@ This section could give the names of models in the NetLogo Models Library or els
8585
8686
## CREDITS AND REFERENCES
8787
88-
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.</info>
88+
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.
89+
90+
<!-- 2025 -->]]></info>
8991
<turtleShapes>
9092
<shape name="default" rotatable="true" editableColorIndex="0">
9193
<polygon color="-1920102913" filled="true" marked="true">

Code Examples/Extensions Examples/sr/plot-example1.nlogox

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ end]]></code>
6060
<note x="20" y="259" backgroundDark="0" fontSize="13" width="150" markdown="false" height="48" textColorDark="-1" textColorLight="-5298144" backgroundLight="0">For "test-plot2" you must have package "spatstat" installed.</note>
6161
<note x="18" y="123" backgroundDark="0" fontSize="11" width="150" markdown="false" height="56" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Note: You can resize the plot window. If you save the plot, the size depends on the current window size.</note>
6262
</widgets>
63-
<info>## WHAT IS IT?
63+
<info><![CDATA[## WHAT IS IT?
6464
6565
This section could give a general understanding of what the model is trying to show or explain.
6666
@@ -94,7 +94,9 @@ This section could give the names of models in the NetLogo Models Library or els
9494
9595
## CREDITS AND REFERENCES
9696
97-
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.</info>
97+
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.
98+
99+
<!-- 2025 -->]]></info>
98100
<turtleShapes>
99101
<shape name="default" rotatable="true" editableColorIndex="0">
100102
<polygon color="-1920102913" filled="true" marked="true">

Code Examples/Extensions Examples/sr/plot-to-file-example.nlogox

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ end</code>
5454
<input x="10" multiline="false" y="75" height="60" variable="plotfile" type="string" width="190">plot-output.pdf</input>
5555
<note x="10" y="140" backgroundDark="0" fontSize="11" width="215" markdown="false" height="28" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">If editing plotfile, don't use backslashes</note>
5656
</widgets>
57-
<info>## WHAT IS IT?
57+
<info><![CDATA[## WHAT IS IT?
5858
5959
This section could give a general understanding of what the model is trying to show or explain.
6060
@@ -88,7 +88,9 @@ This section could give the names of models in the NetLogo Models Library or els
8888
8989
## CREDITS AND REFERENCES
9090
91-
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.</info>
91+
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.
92+
93+
<!-- 2025 -->]]></info>
9294
<turtleShapes>
9395
<shape name="default" rotatable="true" editableColorIndex="0">
9496
<polygon color="-1920102913" filled="true" marked="true">

0 commit comments

Comments
 (0)