Skip to content

Commit

Permalink
Merge pull request #431 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
Updated my master
  • Loading branch information
conlooptechnologies authored Sep 29, 2023
2 parents 1ef81ef + f8b8462 commit 1210250
Show file tree
Hide file tree
Showing 28 changed files with 1,253 additions and 796 deletions.
1 change: 0 additions & 1 deletion docs/CNAME

This file was deleted.

14 changes: 4 additions & 10 deletions instat/clsRLink.vb
Original file line number Diff line number Diff line change
Expand Up @@ -824,15 +824,8 @@ Public Class RLink
End If
ElseIf iCallType = 5 Then
'else if script comes from script window
Dim bSuccess As Boolean = Evaluate(strScript, bSilent:=bSilent, bSeparateThread:=bSeparateThread, bShowWaitDialogOverride:=bShowWaitDialogOverride)

'if not an assignment operation, then capture the output
If Not strScript.Contains("<-") AndAlso bSuccess Then
Dim strScriptAsSingleLine As String = strScript.Replace(vbCrLf, String.Empty)
strScriptAsSingleLine = strScriptAsSingleLine.Replace(vbCr, String.Empty)
strScriptAsSingleLine = strScriptAsSingleLine.Replace(vbLf, String.Empty)
strOutput = GetFileOutput("view_object_data(object = " & strScriptAsSingleLine & " , object_format = 'text' )", bSilent, bSeparateThread, bShowWaitDialogOverride)
End If
'wrap command inside view_object_data just incase there is an output object
strOutput = GetFileOutput("view_object_data(object = " & strScript & " , object_format = 'text' )", bSilent, bSeparateThread, bShowWaitDialogOverride)
Else
'else if script output should not be ignored or not stored as an object or variable

Expand Down Expand Up @@ -883,7 +876,8 @@ Public Class RLink
Dim expTemp As RDotNet.SymbolicExpression
Dim strNewAssignedToScript As String = ConstructAssignTo(strTempAssignTo, strScript)
Evaluate(strNewAssignedToScript, bSilent:=bSilent, bSeparateThread:=bSeparateThread, bShowWaitDialogOverride:=bShowWaitDialogOverride)
expTemp = GetSymbol(strTempAssignTo, bSilent:=bSilent)
'get file path. If not found then silently return nothing
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
Expand Down
84 changes: 46 additions & 38 deletions instat/dlgBarAndPieChart.Designer.vb

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

Loading

0 comments on commit 1210250

Please sign in to comment.