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

Merged
merged 112 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
d302966
Fixes issue where the Levels/Labels dialog does not label the last le…
derekagorhom Jan 31, 2024
ec561ac
Added binwidth controls to the main dialogue
derekagorhom Feb 21, 2024
14c17ba
code fixes
derekagorhom Feb 21, 2024
67236c0
Code changes
derekagorhom Feb 21, 2024
0404dbc
Code changes
derekagorhom Feb 21, 2024
15463ec
Added the scale_y_continuos function to dotplot
derekagorhom Feb 23, 2024
86738fd
Code Changes
derekagorhom Feb 23, 2024
ca81275
Added the Min. Height option to the dialog
derekagorhom Feb 23, 2024
5139b97
Merge branch 'master' into Changes_Histogram
derekagorhom Feb 23, 2024
b23ca8f
code changes
derekagorhom Feb 23, 2024
d0653ab
Code Changes
derekagorhom Feb 26, 2024
152b44c
Code Changes
derekagorhom Feb 27, 2024
71f6c4d
Merge pull request #61 from derekagorhom/master
derekagorhom Feb 28, 2024
b8919cd
Code Changes
derekagorhom Feb 28, 2024
d40e4bc
Changed AfterCellEdit to CellEditTextChanging
N-thony Mar 4, 2024
22f78ff
Main code changes
derekagorhom Mar 4, 2024
753e68f
Design and Code changes
derekagorhom Mar 4, 2024
876a580
Adding the loops function to the transform dialog
derekagorhom Mar 5, 2024
c6977bd
Changing the label names to alternate between column and select
derekagorhom Mar 6, 2024
8e0c588
More additional changes
derekagorhom Mar 7, 2024
347c968
Merge pull request #62 from derekagorhom/master
derekagorhom Mar 12, 2024
54bd90c
Merge pull request #227 from derekagorhom/Loops_Rinstat
Vitalis95 Mar 13, 2024
0fe6945
changes made
Vitalis95 Mar 14, 2024
2cdab11
changes
Vitalis95 Mar 15, 2024
9263a48
initial refactoring: tidied public/private; ordered all members
lloyddewit Mar 17, 2024
23c3add
changes
Vitalis95 Mar 18, 2024
f8b15ed
Merge pull request #63 from Vitalis95/loops
derekagorhom Mar 18, 2024
5147f02
further refactoring of RSyntax
lloyddewit Mar 18, 2024
7d93a20
Code Changes
derekagorhom Mar 18, 2024
cc5517f
final refactoring changes to RSyntax
lloyddewit Mar 19, 2024
c9eac72
Code Changes
derekagorhom Mar 19, 2024
8210d36
Merge pull request #228 from derekagorhom/Loops_Rinstat
Vitalis95 Mar 19, 2024
5d2efdf
Displaying mutliple table to the default browser
N-thony Mar 20, 2024
8e2abd8
minor code change
N-thony Mar 20, 2024
a0592c3
added the package
N-thony Mar 20, 2024
bbf332e
changes to the code
Vitalis95 Mar 20, 2024
045ddce
Merge pull request #64 from Vitalis95/loops
derekagorhom Mar 20, 2024
d190ce3
undone the change in the R code
N-thony Mar 21, 2024
14d1aa5
Made code change for summaries R code
N-thony Mar 21, 2024
e764771
Fixed the preview issue and scale operator issue
derekagorhom Mar 21, 2024
31a7237
Changing the label text for ucrSave when switch between single and mu…
derekagorhom Mar 21, 2024
fa5d013
minor code change
N-thony Mar 21, 2024
edb1f2d
improve the display of multiple html
N-thony Mar 21, 2024
1659b94
code changes
N-thony Mar 21, 2024
5ed3146
minor correction
N-thony Mar 21, 2024
303f5c8
code cleaning
N-thony Mar 22, 2024
d7a321d
minor addition
N-thony Mar 22, 2024
605fb48
R code adjustment for Tables
N-thony Mar 22, 2024
6f7c27d
added comments, code improvement
N-thony Mar 24, 2024
b94d9fe
added more comments
N-thony Mar 24, 2024
f0aa616
minor typo fix
N-thony Mar 25, 2024
0f4084e
fix issue with the tables
N-thony Mar 25, 2024
b03f5ed
Code Changes
derekagorhom Mar 25, 2024
56427fd
chng
Mar 25, 2024
e9ca3f6
Solving comments
N-thony Mar 25, 2024
f2142bc
code Changes
derekagorhom Mar 25, 2024
d8f1010
bug fixes on tables
N-thony Mar 25, 2024
767e1ff
minor bug fix
N-thony Mar 25, 2024
81dbbef
code improvement
N-thony Mar 25, 2024
59591f4
Added comments!!!!
N-thony Mar 26, 2024
eb35a3b
chngs
Mar 26, 2024
56db3d4
Code changes to TestOk
derekagorhom Mar 26, 2024
f326863
fixed bug in running the script from script window
N-thony Mar 26, 2024
f1bda71
Merge pull request #207 from IDEMSInternational/master
MeSophie Mar 27, 2024
d2415d4
Merge pull request #8896 from Fidel365/wakefield
N-thony Mar 28, 2024
f70ff44
Code Changes
derekagorhom Mar 28, 2024
116a627
Merge pull request #209 from IDEMSInternational/master
MeSophie Mar 28, 2024
83b1bfd
Change made
MeSophie Mar 28, 2024
32c384f
change made
MeSophie Mar 28, 2024
9427bdf
Change made
MeSophie Mar 28, 2024
5f8c771
Merge pull request #8887 from N-thony/output_html
conlooptechnologies Mar 28, 2024
3d52f15
Change made
MeSophie Mar 28, 2024
9790eed
Cchange made
MeSophie Mar 28, 2024
7b6cefb
Merge pull request #210 from IDEMSInternational/master
MeSophie Mar 28, 2024
c0c3bd9
Change made
MeSophie Mar 28, 2024
32b18e4
design
Mar 28, 2024
284eb67
chng
Mar 28, 2024
401c2a9
chng
Mar 28, 2024
451cc94
chng
Mar 28, 2024
9cc20ed
changes
Mar 28, 2024
28e7f60
changes
Mar 28, 2024
4c3ad54
Change made
MeSophie Mar 28, 2024
c03010a
changes
Mar 28, 2024
3d76b96
Merge pull request #8881 from lloyddewit/refactorRSyntaxCodes
N-thony Apr 2, 2024
8aae6cb
Merge pull request #8900 from Fidel365/Dates/Times
N-thony Apr 2, 2024
d7b26e9
Merge pull request #66 from derekagorhom/master
derekagorhom Apr 2, 2024
7be7e6f
chng
Apr 2, 2024
59fa950
change
Apr 2, 2024
0a20aa1
changes
Apr 2, 2024
30e1b7a
Added publit strScript
lloyddewit Apr 3, 2024
877f3eb
Re-inserted code to get script from command string
lloyddewit Apr 3, 2024
717e5d7
Update stand_alone_functions.R
lilyclements Apr 3, 2024
ae0c9a4
size to linewidth
lilyclements Apr 3, 2024
3cdf805
Code Changes
derekagorhom Apr 3, 2024
6c32a61
Code Changes
derekagorhom Apr 3, 2024
02185ab
changes
Apr 3, 2024
aebbb9c
Merge pull request #8913 from lloyddewit/RSyntaxBug8881
N-thony Apr 3, 2024
c2c096b
Sorting the display of numbers in the output window
N-thony Apr 3, 2024
d45e6f0
Merge pull request #8914 from N-thony/display_number_output
conlooptechnologies Apr 3, 2024
f3e9a87
Merge pull request #8911 from Fidel365/factor/Complex
N-thony Apr 4, 2024
22f51a6
Merge pull request #8837 from derekagorhom/Changes_Histogram
N-thony Apr 4, 2024
358d82c
Merge pull request #8778 from derekagorhom/FIXES_BUG_IN_LEVEL_DIALOGUE
N-thony Apr 4, 2024
073370c
minor change made
MeSophie Apr 4, 2024
8782aba
fixed the Standardise function for the select columns
derekagorhom Apr 4, 2024
e39e2f7
Fixed Scale Function for the select column
derekagorhom Apr 4, 2024
49cbfc0
Code Changes
derekagorhom Apr 4, 2024
4deafdd
Fixed the Scale function for the select columns
derekagorhom Apr 4, 2024
bc0a1da
Merge pull request #8899 from MeSophie/NewNewClimograph8657
N-thony Apr 5, 2024
47bd45a
Merge pull request #8862 from derekagorhom/Loops_Rinstat
N-thony Apr 5, 2024
dc12b1a
Merge pull request #8901 from MeSophie/PermanIsssue8898
N-thony Apr 5, 2024
7029cbf
ensured that dlgEnter assignments are correctly deleted
lloyddewit Apr 5, 2024
87fdeed
Merge pull request #8919 from lloyddewit/deleteAssignmentsDlgEnter
N-thony Apr 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 45 additions & 12 deletions instat/clsRLink.vb
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,24 @@ Public Class RLink
bShowWaitDialogOverride:=Nothing)
End If

clsOutputLogger.AddOutput(clsRStatement.Text, strOutput, bAsFile:=True,
bDisplayOutputInExternalViewer:=clsRStatement.TextNoFormatting.StartsWith("view_object_data"))
' Split the strOutput into an array of lines, removing empty entries
Dim arrFilesPaths() As String = strOutput.Split({Environment.NewLine}, StringSplitOptions.RemoveEmptyEntries)

' Check if arrFilesPaths has at least one element before iterating
If arrFilesPaths.Length > 0 Then
' Iterate through each file path
For Each _path In arrFilesPaths
' Add output to logger
clsOutputLogger.AddOutput(clsRStatement.Text, _path, bAsFile:=True,
bDisplayOutputInExternalViewer:=clsRStatement.TextNoFormatting.StartsWith("view_object_data"))
Next
Else
' Add output to logger
clsOutputLogger.AddOutput(clsRStatement.Text, strOutput, bAsFile:=True,
bDisplayOutputInExternalViewer:=clsRStatement.TextNoFormatting.StartsWith("view_object_data"))
End If

' Log the script
LogScript(clsRStatement.Text.TrimEnd(vbCr, vbLf))

Catch e As Exception
Expand Down Expand Up @@ -996,9 +1012,23 @@ Public Class RLink
End If
End If

If bAsFile Then
' Split the strOutput into an array of lines, removing empty entries
Dim arrFilesPaths() As String = strOutput.Split({Environment.NewLine}, StringSplitOptions.RemoveEmptyEntries)
' Iterate through each HTML files
For Each _path In arrFilesPaths
' Add each HTML file as an output to clsOutputLogger
' strScriptWithComment: the script with associated comments
' _path: the path to the HTML file
' bAsFile: a boolean indicating whether the output should be treated as a file
' bDisplayOutputInExternalViewer: a boolean indicating whether to display the output in an external viewer
clsOutputLogger.AddOutput(strScriptWithComment, _path, bAsFile, bDisplayOutputInExternalViewer)
Next
Else
' If strOutput is empty or does not contain valid HTML files, add strOutput itself as an output
clsOutputLogger.AddOutput(strScriptWithComment, strOutput, bAsFile, bDisplayOutputInExternalViewer)
End If

'log script and output
clsOutputLogger.AddOutput(strScriptWithComment, strOutput, bAsFile, bDisplayOutputInExternalViewer)

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)")
Expand All @@ -1020,7 +1050,7 @@ Public Class RLink
''' <param name="bShowWaitDialogOverride"></param>
''' <returns>file path name if file is avaialble and has contents else empty string</returns>
Private Function GetFileOutput(strScript As String, bSilent As Boolean, bSeparateThread As Boolean, bShowWaitDialogOverride As Nullable(Of Boolean)) As String
Dim strFilePath As String = ""
Dim strFilesPath As String = ""
Dim strTempAssignTo As String = ".temp_val"
Dim expTemp As RDotNet.SymbolicExpression
Dim strNewAssignedToScript As String = ConstructAssignTo(strTempAssignTo, strScript)
Expand All @@ -1029,14 +1059,17 @@ Public Class RLink
expTemp = GetSymbol(strTempAssignTo, bSilent:=True)
Evaluate("rm(" & strTempAssignTo & ")", bSilent:=True)
If expTemp IsNot Nothing Then
'get the file path name, check if it exists and whether it has contents
'if not, just return empty file path
strFilePath = String.Join(Environment.NewLine, expTemp.AsCharacter())
If Not File.Exists(strFilePath) OrElse New FileInfo(strFilePath).Length = 0 Then
strFilePath = ""
End If
' Convert CharacterVector to String() array
Dim arrFilesPath As String() = expTemp.AsCharacter().Select(Function(x) x.ToString()).ToArray()

' Filter out invalid file paths
arrFilesPath = arrFilesPath.Where(Function(path) File.Exists(path) AndAlso New FileInfo(path).Length > 0).ToArray()

' Join the valid file paths with newline characters
strFilesPath = String.Join(Environment.NewLine, arrFilesPath)
End If
Return strFilePath

Return strFilesPath
End Function

'''--------------------------------------------------------------------------------------------
Expand Down
Loading
Loading