Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update new data frame #129

Merged
merged 366 commits into from
Feb 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
366 commits
Select commit Hold shift + click to select a range
b5e8d25
More addition
Wycklife Oct 29, 2019
5b753c4
Cursor position
Wycklife Oct 29, 2019
04890ed
Tooltips
Wycklife Oct 29, 2019
1525597
Tooltips
Wycklife Oct 29, 2019
81d0402
Tooltips
Wycklife Oct 29, 2019
f73a7ff
Tooltips
Wycklife Oct 29, 2019
c336ee5
Tooltips
Wycklife Oct 29, 2019
13a22f9
Tooltips
Wycklife Oct 29, 2019
caa60fe
Tooltips
Wycklife Oct 29, 2019
40a5637
Tooltips
Wycklife Oct 29, 2019
90155ac
Tooltips
Wycklife Oct 29, 2019
aec4470
Tooltips
Wycklife Oct 29, 2019
e6b56c9
Tooltips
Wycklife Oct 29, 2019
acba538
Tooltips
Wycklife Oct 29, 2019
2acd6c7
Tooltips
Wycklife Oct 29, 2019
81892e4
Tooltips
Wycklife Oct 29, 2019
73e8ba1
Tooltips
Wycklife Oct 29, 2019
18db80c
Tooltips
Wycklife Oct 29, 2019
ed69b52
Tooltips
Wycklife Oct 29, 2019
219b48e
Tooltips
Wycklife Oct 29, 2019
346acd9
Tooltips
Wycklife Oct 29, 2019
3587786
Tooltips
Wycklife Oct 29, 2019
4e82024
Tooltips
Wycklife Oct 29, 2019
349324a
Tooltips
Wycklife Oct 29, 2019
be3a660
Minor changes
Wycklife Nov 1, 2019
cb9a330
minor changes
Ivanluv Nov 1, 2019
b378b2d
Minor changes
Wycklife Nov 4, 2019
87c3bb3
Adding the try functionality to the fit model
Ivanluv Nov 4, 2019
9548101
Merge pull request #115 from africanmathsinitiative/master
Wycklife Nov 6, 2019
9f53475
Merge pull request #1027 from africanmathsinitiative/master
dannyparsons Nov 6, 2019
2a9bc13
minor addditions
Ivanluv Nov 6, 2019
3782eda
Code changes to tryScript
Ivanluv Nov 7, 2019
7f67fb7
Minor additions
Ivanluv Nov 8, 2019
0e319b6
Minor edit
Wycklife Nov 8, 2019
02ad632
making the position layer parameter editable
Ivanluv Nov 12, 2019
ef5f75b
renamed box to tile on treemap dialog
dannyparsons Nov 12, 2019
2ed4997
Merge pull request #395 from africanmathsinitiative/master
shadrackkibet Nov 13, 2019
30301ab
fixes #5466
dannyparsons Nov 13, 2019
aa42da6
added control to TestOK
dannyparsons Nov 13, 2019
e8ad3a8
added line to ensure uniqueness of summary names in display
dannyparsons Nov 13, 2019
1054663
temporary fix for reseting the ucrPnlAnnualWitthin
Ivanluv Nov 14, 2019
f83b9dc
Small change
Wycklife Nov 14, 2019
2caf9cb
minor changes to the try code
Ivanluv Nov 14, 2019
fd6fd7e
improved methods and dialog for describe > two variable summarise
dannyparsons Nov 14, 2019
0b6e43d
Minor change
Ivanluv Nov 15, 2019
2607a5d
Merge pull request #61 from africanmathsinitiative/master
Ivanluv Nov 15, 2019
a7a33c2
added correlation function
dannyparsons Nov 15, 2019
063ca5b
quartiles function now uses type = 1 for Date objects to allow calcul…
dannyparsons Nov 16, 2019
f8fb351
Adding the segmented keyboad to the useModel dialogue
Ivanluv Nov 19, 2019
41d88ae
Minor edit
Ogik99 Nov 20, 2019
4dc2242
Made designer changes
Ogik99 Nov 20, 2019
2ab3b44
linked flip coordinate control to rdoColumn Chart
Ogik99 Nov 20, 2019
a64cb0a
Linked ucrReceiverByFactor to rdoColumnChart
Ogik99 Nov 20, 2019
df45ae9
Minor modifications
Ivanluv Nov 21, 2019
57b05bd
flipped receivers for rdocolumnchart and created new conditions for O…
Ogik99 Nov 21, 2019
38c4072
changed label names for controls in rdoColumnChart
Ogik99 Nov 21, 2019
3fd87e1
Minor addition
Ogik99 Nov 21, 2019
dc34f44
minor changes
Ogik99 Nov 22, 2019
d3e93cb
modified ucrPnlOptions conditions for rdoBarChart
Ogik99 Nov 22, 2019
8205325
Minor additions
Ivanluv Nov 22, 2019
33524df
changing from plot lines to plot
Ivanluv Nov 25, 2019
730396c
Minor changes
Ivanluv Nov 25, 2019
a21780d
Merge branch 'PredictDialogue#5127' of https://github.com/Ivanluv/R-I…
Ivanluv Nov 25, 2019
e1b30ba
Merge pull request #5570 from Ivanluv/FitModel#5561
maxwellfundi Nov 25, 2019
84a7721
Merge pull request #5519 from Wycklife/Factors
maxwellfundi Nov 25, 2019
94747a5
Merge pull request #5538 from Wycklife/tooltips
maxwellfundi Nov 25, 2019
573a55b
Merge pull request #5473 from Ogik99/column_chart
maxwellfundi Nov 25, 2019
ab4598a
Merge pull request #116 from africanmathsinitiative/master
Wycklife Nov 26, 2019
3a8d51c
Merge pull request #495 from africanmathsinitiative/master
maxwellfundi Nov 26, 2019
6af2a5c
Merge pull request #5558 from Ivanluv/geom_tremap
maxwellfundi Nov 26, 2019
f079c23
Minor addition
Ivanluv Nov 26, 2019
d90e7a8
Merge pull request #5586 from Ivanluv/SegmentedKeyboard#5584
maxwellfundi Nov 26, 2019
53b059d
Merge branch 'master' into TransformK
maxwellfundi Nov 26, 2019
7ae4719
Minor edit
Wycklife Nov 26, 2019
dcebba6
Merge pull request #5565 from Wycklife/TransformK
maxwellfundi Nov 26, 2019
a4b4e96
Merge pull request #5592 from Ivanluv/geom_tremap
maxwellfundi Nov 26, 2019
aecf988
Merge pull request #4929 from Patowhiz/UcrSave
maxwellfundi Nov 26, 2019
7c31078
Merge pull request #498 from africanmathsinitiative/master
maxwellfundi Nov 27, 2019
c124fcd
Adding focus to the function in the Receiver Expression
Ivanluv Nov 27, 2019
ff2bdc2
Merge pull request #68 from africanmathsinitiative/master
Ogik99 Nov 27, 2019
f139fc6
Merge pull request #119 from africanmathsinitiative/master
Wycklife Nov 28, 2019
bf11ee3
Adding buttons and resizing the probability keyboard
Wycklife Nov 28, 2019
a1bb7e0
More addition
Wycklife Nov 28, 2019
96aa95c
More Addition
Wycklife Nov 28, 2019
ca672f8
Code implementation
Wycklife Nov 28, 2019
44acc22
code
Wycklife Nov 28, 2019
2cf1e64
Code
Wycklife Nov 28, 2019
d6528d5
code
Wycklife Nov 28, 2019
4eab7e5
More addition
Wycklife Nov 28, 2019
bf37eb2
code
Wycklife Nov 28, 2019
d3e9685
Tool tips
Wycklife Nov 28, 2019
219efff
Tool tips
Wycklife Nov 28, 2019
0a7a5ba
Tool tips
Wycklife Nov 28, 2019
11f0ad1
Tooltips
Wycklife Nov 28, 2019
9356bcf
Tool tips
Wycklife Nov 28, 2019
b16c1c8
Tool tips
Wycklife Nov 28, 2019
73d003c
Resizing maths keyboard
Wycklife Nov 28, 2019
5cc67e4
Tooltips
Wycklife Nov 28, 2019
d84f061
Tool tips
Wycklife Nov 28, 2019
8dcd139
tool tips
Wycklife Nov 28, 2019
1ea0614
Tool tips
Wycklife Nov 28, 2019
71586b4
Tool tips
Wycklife Nov 28, 2019
9039158
More changes
Wycklife Nov 28, 2019
2dbf5de
adding data types to wakefield keys
Wycklife Nov 28, 2019
1cbaee1
more addition
Wycklife Nov 28, 2019
df0ca99
More addition
Wycklife Nov 28, 2019
066f1f9
More addition
Wycklife Nov 28, 2019
20e9609
More addition
Wycklife Nov 28, 2019
6600eb3
Minor edit
Wycklife Nov 28, 2019
a18a637
Minor edit
Wycklife Nov 28, 2019
338589f
Merge branch 'master' into PredictDialogue#5127
maxwellfundi Nov 29, 2019
6190bf3
Merge pull request #5595 from Ivanluv/KeyBoardsFocus#5576
maxwellfundi Nov 29, 2019
6aae56c
Merge pull request #5597 from Wycklife/Calculator
maxwellfundi Nov 29, 2019
965d34b
Merge pull request #5537 from Ivanluv/PredictDialogue#5127
maxwellfundi Nov 29, 2019
4b1872f
Merge pull request #63 from africanmathsinitiative/master
Ivanluv Nov 29, 2019
5fcfde2
Merge pull request #499 from africanmathsinitiative/master
maxwellfundi Nov 29, 2019
7abce0b
Merge pull request #120 from africanmathsinitiative/master
Wycklife Nov 29, 2019
cb4b1a0
UcrSave extension
maxwellfundi Nov 29, 2019
7b8d34c
Merge pull request #5598 from maxwellfundi/master
maxwellfundi Nov 29, 2019
1060d54
Merge pull request #64 from africanmathsinitiative/master
Ivanluv Nov 29, 2019
dc50f84
Merge pull request #5540 from dannyparsons/treemap
maxwellfundi Nov 29, 2019
eb92ae1
Merge pull request #500 from africanmathsinitiative/master
maxwellfundi Nov 29, 2019
df88864
Merge pull request #5574 from dannyparsons/one-var-summarise
maxwellfundi Nov 29, 2019
537045a
Merge pull request #501 from africanmathsinitiative/master
maxwellfundi Nov 29, 2019
284a0c1
Merge pull request #65 from africanmathsinitiative/master
Ivanluv Nov 29, 2019
e24fd51
Fixing the treemap
maxwellfundi Nov 29, 2019
12a0b4a
Merge pull request #5599 from maxwellfundi/dlgTreemap
maxwellfundi Nov 29, 2019
ac0d13e
Merge pull request #502 from africanmathsinitiative/master
maxwellfundi Dec 3, 2019
a4e8a05
Merge pull request #66 from africanmathsinitiative/master
Ivanluv Dec 3, 2019
a1ccd4f
Updating packages
maxwellfundi Dec 3, 2019
df45050
Merge pull request #5607 from maxwellfundi/Packages
maxwellfundi Dec 3, 2019
bcb7803
Merge pull request #68 from africanmathsinitiative/master
Ivanluv Dec 5, 2019
2fbb560
Merge pull request #69 from africanmathsinitiative/master
Ogik99 Dec 5, 2019
88c242f
made designer changes - removed column chart radio button
Ogik99 Dec 5, 2019
2b7c84b
Updating website
maxwellfundi Dec 5, 2019
94c5d11
changes to climatic summaries
Ivanluv Dec 5, 2019
78dfd4a
Added dictionary for y values options
Ogik99 Dec 5, 2019
f7334cd
set rcode for new controls
Ogik99 Dec 5, 2019
2a7f2db
Adding the details functionality to the Model dialogue
Ivanluv Dec 5, 2019
fbb31c2
set conditions for ucrReceiverY
Ogik99 Dec 5, 2019
e28f00f
set conditions for ok enables
Ogik99 Dec 5, 2019
54b22f7
Merge pull request #121 from africanmathsinitiative/master
Wycklife Dec 6, 2019
b3402a9
minor edit
Ogik99 Dec 6, 2019
0c7b22e
fixed bug when logical column in both first and second variable (cons…
dannyparsons Dec 14, 2019
b68074e
Merge pull request #5620 from dannyparsons/one-var-summarise
dannyparsons Dec 14, 2019
140169e
Merge pull request #1028 from africanmathsinitiative/master
dannyparsons Dec 14, 2019
1d282a0
new design on describe two variable graph
dannyparsons Dec 14, 2019
998f987
added options to two variable grpah and reorganised dialog code
dannyparsons Dec 16, 2019
317f3c2
added options to two variable graphs dialog
dannyparsons Dec 17, 2019
5c63697
fixed selector showing variables of the same type
dannyparsons Dec 17, 2019
8cb3733
fixed sd summary on character columns
dannyparsons Dec 17, 2019
51f5bf0
Merge pull request #5622 from dannyparsons/one-var
dannyparsons Dec 17, 2019
a83e1a0
corrected free scales when flipping coordinates
dannyparsons Dec 19, 2019
c7934f0
Merge pull request #122 from africanmathsinitiative/master
Wycklife Jan 7, 2020
c8ba95c
Changes to factor keyboard
Wycklife Jan 7, 2020
517c89c
Addition and arrangement of keys to the Strings Keyboard
Wycklife Jan 7, 2020
8432f17
More addition of keys
Wycklife Jan 7, 2020
08255e2
More keys
Wycklife Jan 7, 2020
244ca23
More addition
Wycklife Jan 7, 2020
9d9aada
More addition
Wycklife Jan 7, 2020
e3d865c
code
Wycklife Jan 7, 2020
018b47d
code
Wycklife Jan 7, 2020
6f290d2
code
Wycklife Jan 7, 2020
ecac0a5
code
Wycklife Jan 7, 2020
a210c8b
code
Wycklife Jan 7, 2020
6af8c88
code
Wycklife Jan 7, 2020
f0542ad
code
Wycklife Jan 7, 2020
4914d41
code
Wycklife Jan 7, 2020
c24e94e
Minor changes
Ivanluv Jan 7, 2020
4c9898f
Code
Wycklife Jan 7, 2020
5df31f2
Code
Wycklife Jan 7, 2020
cb183d3
Changing from 'Closing Data File' to 'Closing Data Book'
Ivanluv Jan 7, 2020
c7b2cea
More addition
Wycklife Jan 7, 2020
8f209be
Adding the ucrTry control
Ivanluv Jan 9, 2020
8d9db9c
Adding more keys and a keyboard
Wycklife Jan 16, 2020
3d6cb04
More addition of keys
Wycklife Jan 16, 2020
a958258
more addition
Wycklife Jan 16, 2020
e8a4aec
More addition
Wycklife Jan 16, 2020
ac6682b
Merge pull request #1029 from africanmathsinitiative/master
dannyparsons Jan 16, 2020
de3101b
Changed tab order on 'import and tidy NetCDF file' dialog. This is re…
lloyddewit Jan 18, 2020
b61ece8
Merge pull request #5629 from lloyddewit/Issue5510TabOrderOnDialogs
dannyparsons Jan 19, 2020
7236ff2
adding the Try control to dialogues
Ivanluv Jan 21, 2020
5387606
Designer
Wycklife Jan 21, 2020
3d30ff1
code
Wycklife Jan 21, 2020
56c7d3b
More addition
Wycklife Jan 21, 2020
5e0a9c8
More addition
Wycklife Jan 21, 2020
6ce71e7
Code
Wycklife Jan 21, 2020
e6ef22e
code
Wycklife Jan 21, 2020
827ccb7
Code
Wycklife Jan 21, 2020
84859f5
Code
Wycklife Jan 21, 2020
15ac39e
Code
Wycklife Jan 21, 2020
91d73fc
code
Wycklife Jan 21, 2020
eaeaa69
Code
Wycklife Jan 21, 2020
566975c
code
Wycklife Jan 21, 2020
6270e1f
code
Wycklife Jan 21, 2020
09b6ba7
code
Wycklife Jan 21, 2020
5489eea
code
Wycklife Jan 21, 2020
f6437bb
minor edit
Wycklife Jan 21, 2020
9374779
More addition
Wycklife Jan 22, 2020
f0ad0b4
Minor changes to ucrDataView right click option
Ivanluv Jan 22, 2020
f9c9003
Cursor position
Wycklife Jan 22, 2020
3afea08
Minor changes
Ivanluv Jan 22, 2020
86887eb
Minor edit
Wycklife Jan 22, 2020
06374b1
minor changes
Ivanluv Jan 22, 2020
7cb4ef7
Merge pull request #5634 from Ivanluv/ViewDataFrame
dannyparsons Jan 22, 2020
d0b6dfa
Merge pull request #123 from africanmathsinitiative/master
Wycklife Jan 23, 2020
5c8dcb7
Minor edit
Wycklife Jan 24, 2020
4ed647f
Minor edit
Wycklife Jan 24, 2020
2eb9417
Minor edit
Wycklife Jan 24, 2020
9a46d13
Minor edit
Wycklife Jan 24, 2020
2410fe0
Solves #5613 problem deleting only data frame.
lloyddewit Jan 24, 2020
8fd6998
Merge pull request #5637 from lloyddewit/5613ProblemDeletingOnlyDataF…
dannyparsons Jan 24, 2020
eedcc31
adding package name
shadrackkibet Jan 26, 2020
7afc37f
Merge pull request #5640 from shadrackkibet/vonmisses
dannyparsons Jan 26, 2020
06e6a90
#5577 was caused by the following:
lloyddewit Jan 27, 2020
aa71f55
Removed `= True` check from if ststement.
lloyddewit Jan 27, 2020
bf77b68
Adding the R Package dialogue
Ivanluv Jan 27, 2020
1e5c415
Merge branch '5577ErrorsInR-InstatRepeatPreviousCommand' of https://g…
dannyparsons Jan 27, 2020
ac8ac56
added check to capture error when displaying assigned output (multi l…
dannyparsons Jan 27, 2020
138e86c
Formain changes
Wycklife Jan 28, 2020
a899848
Frmain changes
Wycklife Jan 28, 2020
05b4bdb
More changes
Wycklife Jan 28, 2020
ff1d78b
Merge pull request #1 from dannyparsons/lloyddewit-5577ErrorsInR-Inst…
lloyddewit Jan 28, 2020
c797207
More addition
Wycklife Jan 28, 2020
e2e44b4
Minor additions
Ivanluv Jan 28, 2020
f0e30df
Tab order for the Describe>Spesifcic dialogues
Ivanluv Jan 29, 2020
f3788ca
Merge pull request #5641 from lloyddewit/5577ErrorsInR-InstatRepeatPr…
dannyparsons Jan 29, 2020
3430f94
Minor changes
Ivanluv Jan 29, 2020
7d87d41
Minor changes
Ivanluv Jan 30, 2020
03b888e
Merge pull request #5626 from Wycklife/Keyboards
maxwellfundi Feb 3, 2020
8c8bce6
Merge pull request #5625 from Ivanluv/CloseDataBook#5614
maxwellfundi Feb 3, 2020
089de53
Merge pull request #5377 from Ivanluv/ClimaticSummaries
maxwellfundi Feb 3, 2020
e261b6a
Minor changes
Wycklife Feb 3, 2020
adad1c2
Merge pull request #401 from africanmathsinitiative/master
shadrackkibet Feb 3, 2020
d15edf3
Merge pull request #5621 from dannyparsons/two-var-graph
dannyparsons Feb 3, 2020
d803cbd
Merge branch 'master' into FrmainChanges
maxwellfundi Feb 3, 2020
0071a70
Merge pull request #5644 from Wycklife/FrmainChanges
maxwellfundi Feb 3, 2020
3f1d5a1
Merge pull request #5610 from Ogik99/bar_chart_column
maxwellfundi Feb 3, 2020
d569862
Merge branch 'master' into TABORDER
maxwellfundi Feb 3, 2020
1e2e1ed
Merge pull request #5646 from Ivanluv/TABORDER
maxwellfundi Feb 3, 2020
2262d16
Merge pull request #4786 from shadrackkibet/Help
maxwellfundi Feb 3, 2020
6cab77d
Additional changes
Ivanluv Feb 3, 2020
1ad7b66
Adding calculator
Ivanluv Feb 3, 2020
e3e6754
Merge branch 'master' into ShowError#5604
maxwellfundi Feb 3, 2020
07ec9b8
Merge pull request #5611 from Ivanluv/ShowError#5604
maxwellfundi Feb 3, 2020
f55fa85
Merge pull request #71 from africanmathsinitiative/master
Ivanluv Feb 3, 2020
a0c8737
Fixing calc bug
Ivanluv Feb 3, 2020
7a6f40d
Merge pull request #5652 from Ivanluv/ShowError#5604
maxwellfundi Feb 3, 2020
225230f
Merge branch 'master' into RPackages
maxwellfundi Feb 3, 2020
3378499
Merge pull request #5645 from Ivanluv/RPackages
maxwellfundi Feb 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions docs/Download.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@
<div class="col-lg-8 col-lg-offset-2 text-center">
<h2 class="section-heading">Download R-Instat</h2>
<hr class="light">
<p>If this is your first time downloading R-Instat, we recommend you <a href="http://bit.ly/2Jl5Byo" style="color:blue;" target="_blank">download the Complete Installer</a>. The Complete Installer is the same version of R-Instat as the Basic Installer but also includes the required version of R (3.6.0 currently) to run R-Instat.</p>
<p>If this is your first time downloading R-Instat, we recommend you <a href="http://bit.ly/33O7Z87" style="color:blue;" target="_blank">download the Complete Installer</a>. The Complete Installer is the same version of R-Instat as the Basic Installer but also includes the required version of R (3.6.0 currently) to run R-Instat.</p>
<p>If you do not know if you have the latest version of R, download the Complete Installer. The Basic Installer does not include R.</p>
<p>R-Instat is currently a Windows only application. However, it can be accessed on Mac or Linux through use of a Virtual Windows Machine.</p>
<p><a href="http://bit.ly/2Jl5Byo" style="color:blue;" target="_blank">R-Instat 0.5.4 Complete Installer (.exe 577MB)</a></p>
<p><a href="http://bit.ly/2ph63H1" style="color:blue;" target="_blank">R-Instat 0.5.4 Basic Installer (.msi 499MB)</a></p>
<p><a href="http://bit.ly/33O7Z87" style="color:blue;" target="_blank">R-Instat 0.5.5 Complete Installer (.exe 594MB)</a></p>
<p><a href="http://bit.ly/2sI7CiE" style="color:blue;" target="_blank">R-Instat 0.5.5 Basic Installer (.msi 516MB)</a></p>

<h2 class="section-heading">Installation & Documentation</h2>
<hr class="light">
Expand Down
2 changes: 1 addition & 1 deletion instat/clsGridLink.vb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Public Class clsGridLink
clsGetCombinedMetadata.SetRCommand(frmMain.clsRLink.strInstatDataObject & "$get_combined_metadata")
clsSetMetadataChanged.SetRCommand(frmMain.clsRLink.strInstatDataObject & "$set_metadata_changed")

If frmMain.clsRLink.bInstatObjectExists Then
If frmMain.clsRLink.bInstatObjectExists AndAlso frmMain.clsRLink.GetDataFrameCount() > 0 Then
expTemp = frmMain.clsRLink.RunInternalScriptGetValue(clsDataChanged.ToScript())
If expTemp IsNot Nothing AndAlso expTemp.Type <> Internals.SymbolicExpressionType.Null Then
bRDataChanged = expTemp.AsLogical(0)
Expand Down
1,040 changes: 534 additions & 506 deletions instat/clsRCodeStructure.vb

Large diffs are not rendered by default.

50 changes: 37 additions & 13 deletions instat/clsRLink.vb
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ Public Class RLink
Dim clsPNGFunction As New RFunction
Dim strTempAssignTo As String = ".temp_val"
Dim bSuccess As Boolean
Dim bError As Boolean = False

strTempGraphsDirectory = System.IO.Path.Combine(System.IO.Path.GetTempPath() & "R_Instat_Temp_Graphs")
strOutput = ""
Expand Down Expand Up @@ -558,7 +559,7 @@ Public Class RLink
strSplitScript = Left(strScript, strScript.Trim(Environment.NewLine.ToCharArray).LastIndexOf(Environment.NewLine.ToCharArray))
If strSplitScript <> "" Then
Try
Evaluate(strSplitScript, bSilent:=bSilent, bSeparateThread:=bSeparateThread, bShowWaitDialogOverride:=bShowWaitDialogOverride)
bError = Not Evaluate(strSplitScript, bSilent:=bSilent, bSeparateThread:=bSeparateThread, bShowWaitDialogOverride:=bShowWaitDialogOverride)
Catch e As Exception
MsgBox(e.Message & Environment.NewLine & "The error occurred in attempting to run the following R command(s):" & Environment.NewLine & strScript, MsgBoxStyle.Critical, "Error running R command(s)")
End Try
Expand All @@ -567,12 +568,16 @@ Public Class RLink
strCapturedScript = "capture.output(" & strSplitScript & ")"
End If
Try
Evaluate(strTempAssignTo & " <- " & strCapturedScript, bSilent:=bSilent, bSeparateThread:=bSeparateThread, bShowWaitDialogOverride:=bShowWaitDialogOverride)
expTemp = GetSymbol(strTempAssignTo)
If expTemp IsNot Nothing Then
strTemp = String.Join(Environment.NewLine, expTemp.AsCharacter())
If strTemp <> "" Then
strOutput = strOutput & strTemp & Environment.NewLine
If Not bError Then
If Evaluate(strTempAssignTo & " <- " & strCapturedScript, bSilent:=bSilent, bSeparateThread:=bSeparateThread, bShowWaitDialogOverride:=bShowWaitDialogOverride) Then
expTemp = GetSymbol(strTempAssignTo)
Evaluate("rm(" & strTempAssignTo & ")", bSilent:=True)
If expTemp IsNot Nothing Then
strTemp = String.Join(Environment.NewLine, expTemp.AsCharacter())
If strTemp <> "" Then
strOutput = strOutput & strTemp & Environment.NewLine
End If
End If
End If
End If
Catch e As Exception
Expand All @@ -592,27 +597,27 @@ Public Class RLink
End If
End Sub

Public Function RunInternalScriptGetValue(strScript As String, Optional strVariableName As String = ".temp_value", Optional bSilent As Boolean = False, Optional bSeparateThread As Boolean = True, Optional bShowWaitDialogOverride As Nullable(Of Boolean) = Nothing) As SymbolicExpression
Public Function RunInternalScriptGetValue(strScript As String, Optional strVariableName As String = ".temp_value", Optional bSilent As Boolean = False, Optional bSeparateThread As Boolean = True, Optional bShowWaitDialogOverride As Nullable(Of Boolean) = Nothing, Optional ByRef strError As String = "") As SymbolicExpression
Dim expTemp As SymbolicExpression
Dim strCommand As String

expTemp = Nothing
'TODO Bug here if strScript is multiple lines. Wrong value will be returned
strCommand = strVariableName & "<-" & strScript
strCommand = strVariableName & " <- " & strScript
If clsEngine IsNot Nothing Then
Evaluate(strCommand, bSilent:=bSilent, bSeparateThread:=bSeparateThread, bShowWaitDialogOverride:=bShowWaitDialogOverride)
Evaluate(strCommand, bSilent:=bSilent, bSeparateThread:=bSeparateThread, bShowWaitDialogOverride:=bShowWaitDialogOverride, strError:=strError)
expTemp = GetSymbol(strVariableName, bSilent:=True)
'Very important to remove the variable after getting it othewise could be returning wrong variable later if a command gives an error
Evaluate("rm(" & strVariableName & ")", bSilent:=bSilent, bSeparateThread:=bSeparateThread)
End If
Return expTemp
End Function

Public Function RunInternalScriptGetOutput(strScript As String, Optional bSilent As Boolean = False, Optional bSeparateThread As Boolean = True, Optional bShowWaitDialogOverride As Nullable(Of Boolean) = Nothing) As CharacterVector
Public Function RunInternalScriptGetOutput(strScript As String, Optional bSilent As Boolean = False, Optional bSeparateThread As Boolean = True, Optional bShowWaitDialogOverride As Nullable(Of Boolean) = Nothing, Optional ByRef strError As String = "") As CharacterVector
Dim chrTemp As CharacterVector
Dim expTemp As SymbolicExpression

expTemp = RunInternalScriptGetValue("capture.output(" & strScript & ")", bSilent:=bSilent, bSeparateThread:=bSeparateThread, bShowWaitDialogOverride:=bShowWaitDialogOverride)
expTemp = RunInternalScriptGetValue("capture.output(" & strScript & ")", bSilent:=bSilent, bSeparateThread:=bSeparateThread, bShowWaitDialogOverride:=bShowWaitDialogOverride, strError:=strError)
Try
chrTemp = expTemp.AsCharacter()
Catch ex As Exception
Expand Down Expand Up @@ -641,14 +646,15 @@ Public Class RLink
End If
End Function

Private Function Evaluate(strScript As String, Optional bSilent As Boolean = False, Optional bSeparateThread As Boolean = True, Optional bShowWaitDialogOverride As Nullable(Of Boolean) = Nothing) As Boolean
Private Function Evaluate(strScript As String, Optional bSilent As Boolean = False, Optional bSeparateThread As Boolean = True, Optional bShowWaitDialogOverride As Nullable(Of Boolean) = Nothing, Optional ByRef strError As String = "") As Boolean
Dim thrRScript As Threading.Thread
Dim thrDelay As Threading.Thread
Dim thrWaitDisplay As Threading.Thread
Dim evtWaitHandleWaitDisplayDone As New System.Threading.AutoResetEvent(False)
Dim evtWaitHandleDelayDone As New System.Threading.AutoResetEvent(False)
Dim bReturn As Boolean = True
Dim i As Integer = 1
Dim strTempError As String = ""
Dim strTempFile As String
Dim bErrorMessageOpen As Boolean = False
Dim bCurrentShowWaiting As Boolean
Expand Down Expand Up @@ -716,6 +722,7 @@ Public Class RLink
MsgBox(ex.Message & Environment.NewLine & "The error occurred in attempting to run the following R command(s):" & Environment.NewLine & strScript, MsgBoxStyle.Critical, "Error running R command(s)")
bErrorMessageOpen = False
End If
strTempError = ex.Message
bReturn = False
End Try
End Sub)
Expand Down Expand Up @@ -758,12 +765,14 @@ Public Class RLink
If Not bSilent Then
MsgBox(ex.Message & Environment.NewLine & "The error occurred in attempting to run the following R command(s):" & Environment.NewLine & strScript, MsgBoxStyle.Critical, "Error running R command(s)")
End If
strTempError = ex.Message
bReturn = False
End Try
Else
bReturn = False
End If
bRCodeRunning = False
strError = strTempError
Return bReturn
End Function

Expand Down Expand Up @@ -1078,6 +1087,21 @@ Public Class RLink
Return bExists
End Function

Public Function GetDataFrameCount() As Integer
Dim iCount As Integer
Dim clsDataFrameCount As New RFunction
Dim expCount As SymbolicExpression

clsDataFrameCount.SetRCommand(strInstatDataObject & "$dataframe_count")
expCount = RunInternalScriptGetValue(clsDataFrameCount.ToScript(), bSilent:=True)
If expCount IsNot Nothing AndAlso Not expCount.Type = Internals.SymbolicExpressionType.Null Then
iCount = expCount.AsInteger(0)
Else
iCount = 0
End If
Return iCount
End Function

Public Function GetDataFrameLength(strDataFrameName As String, Optional bUseCurrentFilter As Boolean = False) As Integer
Dim iLength As Integer
Dim clsDataFrameLength As New RFunction
Expand Down
56 changes: 52 additions & 4 deletions instat/dlgBarAndPieChart.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading