inst/exampleApps/helloworldref.R

app <- setRefClass(
    'HelloWorld',
    methods = list(
	call = function(env){
	    list(
		status=200,
		headers = list(
		    'Content-Type' = 'text/html'
		    ),
		body = paste('<h1>Hello World!</h1>')
	    )
	}
    )
)$new()

Try the Rook package in your browser

Any scripts or data that you put into this service are public.

Rook documentation built on Nov. 10, 2022, 6:13 p.m.