Learn R Programming

⚠️There's a newer version (1.0.5) of this package.Take me there.

webdeveloper (version 0.1.0)

Functions for Web Development

Description

Organizational framework for web development in R including functions to serve static and dynamic content via HTTP methods, includes the html5 package to create HTML pages, and offers other utility functions for common tasks related to web development.

Copy Link

Version

Install

install.packages('webdeveloper')

Monthly Downloads

230

Version

0.1.0

License

GPL (>= 2)

Maintainer

Timothy Conwell

Last Published

February 5th, 2021

Functions in webdeveloper (0.1.0)

quoteText

Add single quotes to strings, useful for converting R strings into SQL formatted strings.
paramList

Parse HTTP parameter strings.
doubleQuoteText

Add double quotes to strings.
endServer

Stop HTTP server(s) by calling httpuv::stopServer() or httpuv::stopAllServers().
castDateString

Format a date string as " from a SQL database to a format compatible with a HTML date input value.
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: <U+201C>x<U+201D>: <U+201C>120<U+201D> ).
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.
sampleStr

Generates (pseudo)random strings of the specified char length.
castNumeric

Convert strings to numeric if possible, otherwise remains as is.