Functions for Web Development


[Up] [Top]

Documentation for package ‘webdeveloper’ version 0.1.0

Help Pages

castDateString Format a date string as " from a SQL database to a format compatible with a HTML date input value.
castNumeric Convert strings to numeric if possible, otherwise remains as is.
doubleQuoteText Add double quotes to strings.
endServer Stop HTTP server(s) by calling httpuv::stopServer() or httpuv::stopAllServers().
fromInput Prepare values collected from HTML forms to save to a SQL database by calling quoteText. If x is "", returns "NULL".
jsonStr Format data as a JSON object (like this: “x”: “120” ).
paramList Parse HTTP parameter strings.
quoteText Add single quotes to strings, useful for converting R strings into SQL formatted strings.
sampleStr Generates (pseudo)random strings of the specified char length.
serveHTTP Conveniently create HTTP server using httpuv::startServer() or httpuv::runServer().
smart_options Creates HTML option tags for each position of a list of values and labels by calling html5::option(), returning a string of HTML to pass to a select tag through html5::select().
toInput Replace NA values with "", useful for passing values to HTML tags.