Code
server_status()
Output
http://www.plantuml.com/plantuml/
2
Server needs to be set to localhost by running `server_set("local"!)`
Code
server_set("local")
s <- server_start()
s$version <- "NA"
s
Output
$version
[1] "NA"
$PicoWebServer
[1] TRUE
$formats
[1] "png" "svg" "txt"
Code
s <- server_status()
s$version <- "NA"
Warning <simpleWarning>
Coercing LHS to a list
Code
s
Output
$`http://localhost:8080/`
[1] 1
$version
[1] "NA"
Code
s <- server_start()
Warning <simpleWarning>
There is already a PicoWeb Server running on port 8080!
Code
s$version <- "NA"
s
Output
$version
[1] "NA"
$PicoWebServer
[1] TRUE
$formats
[1] "png" "svg" "txt"
Code
s <- server_info()
s$version <- "NA"
s
Output
$version
[1] "NA"
$PicoWebServer
[1] TRUE
$formats
[1] "png" "svg" "txt"
Code
server_set("remote")
Code
server_set("local")
s <- server_stop()
s$version <- "NA"
Warning <simpleWarning>
Coercing LHS to a list
Code
s
Output
[[1]]
[1] 0
$version
[1] "NA"
Code
Sys.sleep(2)
s <- server_status()
s$version <- "NA"
Warning <simpleWarning>
Coercing LHS to a list
Code
s
Output
$`http://localhost:8080/`
[1] 1
$version
[1] "NA"
Code
s <- server_info()
s$version <- "NA"
s
Output
$version
[1] "NA"
$PicoWebServer
[1] TRUE
$formats
[1] "png" "svg" "txt"
Code
s <- server_start()
Warning <simpleWarning>
There is already a PicoWeb Server running on port 8080!
Code
s$version <- "NA"
s
Output
$version
[1] "NA"
$PicoWebServer
NULL
$formats
NULL
Code
server_set("remote")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.