The R Project SVN R

Rev

Rev 59039 | Rev 67395 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61150
Line 72... Line 72...
72
cat(shQuote(test), "\n")
72
cat(shQuote(test), "\n")
73
 
73
 
74
tryit <- paste("use the", sQuote("-c"), "switch\nlike this")
74
tryit <- paste("use the", sQuote("-c"), "switch\nlike this")
75
cat(shQuote(tryit), "\n")
75
cat(shQuote(tryit), "\n")
76
\dontrun{system(paste("echo", shQuote(tryit)))}
76
\dontrun{system(paste("echo", shQuote(tryit)))}
77
cat(shQuote(tryit, type="csh"), "\n")
77
cat(shQuote(tryit, type = "csh"), "\n")
78
 
78
 
79
## Windows-only example.
79
## Windows-only example.
80
perlcmd <- 'print "Hello World\\n";'
80
perlcmd <- 'print "Hello World\\n";'
81
\dontrun{shell(paste("perl -e", shQuote(perlcmd, type="cmd")))}
81
\dontrun{shell(paste("perl -e", shQuote(perlcmd, type = "cmd")))}
82
}
82
}
83
\keyword{utilities}
83
\keyword{utilities}