Skip to content

Commit

Permalink
Merge pull request #212 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
Merge from MC
  • Loading branch information
lilyclements authored Mar 18, 2017
2 parents 1dc13ca + addaa54 commit 2d13f84
Show file tree
Hide file tree
Showing 7 changed files with 261 additions and 230 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
292 changes: 139 additions & 153 deletions instat/dlgInventoryPlot.designer.vb

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

Loading

0 comments on commit 2d13f84

Please sign in to comment.