Skip to content

Commit

Permalink
fix shellViewPdf on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Jan 16, 2013
1 parent 7d437bb commit ff7f7d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cpp/r/R/Tools.R
Expand Up @@ -229,11 +229,12 @@ assign( envir = .rs.Env, ".rs.setVar", function(name, var)
# - linux: getOption("pdfviewer")
.rs.addFunction( "shellViewPdf", function(path)
{
require(utils)
sysName <- Sys.info()[['sysname']]

if (identical(sysName, "Windows"))
{
utils:::shell.exec(diagPath)
shell.exec(path)
}
else
{
Expand Down

0 comments on commit ff7f7d7

Please sign in to comment.