Skip to contents

This function stops the TiddlyWiki server by interrupting the process.

Usage

stop_server(p)

Arguments

p

Process object. The process object representing the running TiddlyWiki server.

Examples

# Start the server
p <- start_server()
#> Error in c("process_initialize(self, private, command, args, stdin, stdout, ", "    stderr, pty, pty_options, connections, poll_connection, env, "): ! Native call to `processx_exec` failed
#> Caused by error in `chain_call(c_processx_exec, command, c(command, args), pty, pty_options, …`:
#> ! cannot start processx process 'tiddlywiki' (system error 2, No such file or directory) @unix/processx.c:611 (processx_exec)

# Stop the server
stop_server(p)
#> Error in eval(expr, envir, enclos): object 'p' not found