Nothing
.RunWriteRExecutable = function(file=NULL){
shell(paste0(Sys.which("WriteR"), .ifelse(is.null(file), "", file)), wait=FALSE)
}
.IsWriteRAvailable =
function(){
Success = FALSE
PyExists = TestPython()
if(PyExists && .IsWxAvailable()){
Success=TRUE
}else{
if(PyExists){
Success = .PullWxUsingPip()
}else{
.NeedsPython()
}
}
return(invisible(Success))
}
# Running the WriteR application
# only for Windows users at present.
WriteR =
function(file = NULL, math = c("webTeX", "MathJax")) {
if (interactive()) {
if (.Platform$OS.type == "windows") {
if (.IsWriteRAvailable() | Sys.which("WriteR") != "") {
if (!is.null(file)) {
if (!file.exists(file)) {
.FileCreated(file=file, where="in the current directory.")
file.copy(system.file("Templates/simpleYAMLHeader.Rmd", package="BrailleR"), file)
}
}
shell(paste0('"', file.path(system.file(
"Python/WriteR/WriteR.pyw", package = "BrailleR")), '" ',
.ifelse(is.null(file), "", file)), wait=FALSE)
} else {
.NeedsWX()
.InstallPython()
}
} else {
.WindowsOnly()
}
} else {
.InteractiveOnly()
}
return(invisible(NULL))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.