Skip to content

Commit

Permalink
Merge pull request IDEMSInternational#2798 from dannyparsons/html
Browse files Browse the repository at this point in the history
added Html option
  • Loading branch information
dannyparsons authored Mar 18, 2017
2 parents c9b9baf + bc0ff3f commit addaa54
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions instat/clsRLink.vb
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ Public Class RLink
End If
End If

'If strScript.Length > 2000 Then
' MsgBox("The following command cannot be run because it exceeds the character limit of 2000 characters for a command in R-Instat." & vbNewLine & strScript & vbNewLine & vbNewLine & "It may be possible to run the command directly in R.", MsgBoxStyle.Critical, "Cannot run command")
If iCallType = 0 OrElse iCallType = 3 Then
'If strScript.Length > 2000 Then
' MsgBox("The following command cannot be run because it exceeds the character limit of 2000 characters for a command in R-Instat." & vbNewLine & strScript & vbNewLine & vbNewLine & "It may be possible to run the command directly in R.", MsgBoxStyle.Critical, "Cannot run command")
If iCallType = 0 OrElse iCallType = 3 Then
Try
If iCallType = 3 Then
If strGraphDisplayOption = "view_output_window" OrElse strGraphDisplayOption = "view_separate_window" Then
Expand All @@ -273,7 +273,7 @@ Public Class RLink
'need to boost resolution of the devices, it's not as good as with ggsave.
End If
End If
clsEngine.Evaluate(strScript)
clsEngine.Evaluate(strScript)
If iCallType = 3 Then
If strGraphDisplayOption = "view_output_window" OrElse strGraphDisplayOption = "view_separate_window" Then
'add an R script (maybe in the form of one of our methods) that copies divices to the temp directory, using the default device production... use dev.list() and dev.copy() with arguments device = the devices in the list and which = jpeg devices with different paths leading to the temp directory, using a paste() method to find different names for the files
Expand Down
1 change: 1 addition & 0 deletions instat/clsRSyntax.vb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Public Class RSyntax
Public bUseCommandString As Boolean = False
'Above, the three types of Base R-commands, and their associated "radio bottons booleans".
Public iCallType As Integer = 0
Public bHTMLOutput As Boolean = False
Public strScript As String
Public i As Integer
Public bExcludeAssignedFunctionOutput As Boolean = True
Expand Down
2 changes: 1 addition & 1 deletion instat/ucrButtons.vb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Public Class ucrButtons
bToBeAssigned = clsRsyntax.GetbToBeAssigned()
strAssignTo = clsRsyntax.GetstrAssignTo()
'Also need to be getting strAssignToColumn, strAssignToDataFrame etc. maybe one method to get all as a list
frmMain.clsRLink.RunScript(clsRsyntax.GetScript(), clsRsyntax.iCallType, strComment:=strComments)
frmMain.clsRLink.RunScript(clsRsyntax.GetScript(), clsRsyntax.iCallType, bHtmlOutput:=clsRsyntax.bHTMLOutput, strComment:=strComments)

'This clears the script after it has been run, but leave the function and parameters in the base function
'so that it can be run exactly the same when reopened.
Expand Down

0 comments on commit addaa54

Please sign in to comment.