Package: formr 0.10.2

Ruben Arslan

formr: formr survey framework

The formr R package provides a few convenience functions that may be useful to the users of formr (formr.org), an online survey framework which heavily relies on R via openCPU. Some of the functions are for conveniently generating individual feedback graphics, some are just shorthands to make certain common operations in formr more palatable to R novices.

Authors:Ruben Arslan [aut, cre]

formr_0.10.2.tar.gz
formr_0.10.2.zip(r-4.5)formr_0.10.2.zip(r-4.4)formr_0.10.2.zip(r-4.3)
formr_0.10.2.tgz(r-4.4-any)formr_0.10.2.tgz(r-4.3-any)
formr_0.10.2.tar.gz(r-4.5-noble)formr_0.10.2.tar.gz(r-4.4-noble)
formr_0.10.2.tgz(r-4.4-emscripten)formr_0.10.2.tgz(r-4.3-emscripten)
formr.pdf |formr.html
formr/json (API)

# Install 'formr' in R:
install.packages('formr', repos = c('https://rforms.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/rubenarslan/formr/issues

On CRAN:

convenience-functionsformrsurvey-framework

5.70 score 56 stars 1 packages 74 scripts 72 exports 81 dependencies

Last updated 4 days agofrom:c9e5dcc6ff. Checks:OK: 2 NOTE: 5. Indexed: no.

TargetResultDate
Doc / VignettesOKOct 18 2024
R-4.5-winOKOct 18 2024
R-4.5-linuxNOTEOct 18 2024
R-4.4-winNOTEOct 18 2024
R-4.4-macNOTEOct 18 2024
R-4.3-winNOTEOct 18 2024
R-4.3-macNOTEOct 18 2024

Exports:.formr%>%%begins_with%%contains_word%%contains%%ends_with%%starts_with%aggregate_and_document_scaleasis_knit_childchoice_labels_for_valuescrosstabscurrentemail_imageexpiredfeedback_chunkfinishedfirstformr_aggregateformr_api_access_tokenformr_api_resultsformr_api_sessionformr_connectformr_disconnectformr_inline_renderformr_item_displaysformr_itemsformr_knitformr_last_hostformr_post_process_resultsformr_raw_resultsformr_recogniseformr_renderformr_render_commonmarkformr_resultsformr_reverseformr_shuffledformr_simulate_from_itemsformr_store_keysformr_upload_itemsformr_user_detailformr_user_overviewget_opencpu_rdsif_naif_na_nullifelsenain_time_windowitemitemsknit_prefixedlastloadRDSls_by_classmarkdown_custom_optionsmarkdown_githubmarkdown_hard_line_breaksmiss_fracn_missingn_nonmissingnext_daypaste.knit_asispropsqplot_on_barqplot_on_normalqplot_on_polarrender_textrescue_attributesreverse_labelled_valuestext_message_clickatelltext_message_massenversandtext_message_twiliotime_passedword_document

Dependencies:askpassassertthatbase64encbitbit64bslibcachemclicliprcolorspacecommonmarkcpp11crayoncurldigestdplyrevaluatefansifarverfastmapfilelockfontawesomeforcatsfsgenericsggplot2gluegtablehavenhighrhmshtmltoolshttrisobandjquerylibjsonlitekeyringknitrlabelinglatticelifecyclelubridatemagrittrMASSMatrixmemoisemgcvmimemunsellnlmeopensslpillarpkgconfigprettyunitsprogresspurrrR6rappdirsRColorBrewerreadrrlangrmarkdownsassscalessodiumstringistringrsystibbletidyrtidyselecttimechangetinytextzdbutf8vctrsviridisLitevroomwithrxfunyaml

Readme and manuals

Help Manual

Help pageTopics
check whether a character string begins with a string%begins_with% %starts_with%
check whether a character string contains another as a word%contains_word%
check whether a character string contains another%contains%
check whether a character string ends with a string%ends_with%
Aggregate variables and remember which variables this wereaggregate_and_document_scale
Transform formr_item_list into a data.frame for ease of useas.data.frame.formr_item_list
knit_child as isasis_knit_child
switch choice values with labelschoice_labels_for_values
xtabs with sensible defaultscrosstabs
Gives the last element, doesn't omit missingscurrent
generates valid email cidsemail_image
How many surveys were expired?expired
Text feedback based on groupsfeedback_chunk
How many surveys were finished?finished
Gives the first non-missing elementfirst
Aggregate data based on item tableformr_aggregate
Connect to formr APIformr_api_access_token
Get result from formrformr_api_results
Get current API session Return or set URL in list form for formr API (if available)formr_api_session
Connect to formrformr_connect
Disconnect from formrformr_disconnect
render inline text for formrformr_inline_render
Download detailed result timings and display counts from formrformr_item_displays
Download items from formrformr_items
knit rmarkdown to markdown for formrformr_knit
Get the last specified hostformr_last_host
Processed, aggregated resultsformr_post_process_results
Download data from formrformr_raw_results
Recognise data types based on item tableformr_recognise
render text for formrformr_render
render inline text for formrformr_render_commonmark
Download processed, aggregated results from formrformr_results
Reverse items based on item table or a fallback_maxformr_reverse
Download random groupsformr_shuffled
Simulate data based on item tableformr_simulate_from_items
Store keys in keyringformr_store_keys
Upload new item tableformr_upload_items
Download random groupsformr_user_detail
Download random groupsformr_user_overview
pass in the url to the RDS representation of a openCPU session object, get the objectget_opencpu_rds
Replace NA values with something elseif_na
This function makes sure you know what to expect when evaluating uncertain results in an if-clause. In most cases, you should not use this function, because it can lump a lot of very different cases together, but it may have some use for fool-proofing certain if-clauses on formr.org, where a field in a survey may either not exist, be missing or have a value to check.if_na_null
Like 'ifelse()', but allows you to assign a third value to missings.ifelsena
checks whether the current time is in a certain time windowin_time_window
get item from survey attributeitem
get item list from survey attributesitems
knit prefixedknit_prefixed
Gives the last non-missing elementlast
loads an RDS object, assigns it to an object of the base-filenameloadRDS
get functions in the environment by their class. Useful to find e.g. all regression models you've stored in interactive programming.ls_by_class
custom markdown options for rmarkdown's pandocmarkdown_custom_options
github_markdown for rmarkdownmarkdown_github
hard line breaksmarkdown_hard_line_breaks
percentage of missings for each variable in a data.framemiss_frac
Returns the number of missings in a variable or dataset. If missings are an explicit level in a factor variable, this function defaults to reporting them anyway.n_missing
Returns the number of nonmissings in a variable or dataset. If missings are an explicit level in a factor variable, this function defaults to excluding them anyway.n_nonmissing
checks whether a new day has broken (date has increased by at least one day)next_day
paste.knit_asispaste.knit_asis
Print new lines in knit_asis outputsprint.knit_asis
proportions tableprops
Plot normed values as a barchartqplot_on_bar
Plot a normed value on the standard normalqplot_on_normal
Time-polar plotqplot_on_polar
Random date in rangerandom_date_in_range
render textrender_text
Rescue lost attributesrescue_attributes
Reverse labelled valuesreverse_labelled_values
Send text message via Clickatelltext_message_clickatell
Send text message via Massenversand.detext_message_massenversand
Send text message via Twiliotext_message_twilio
checks how much time has passed relative to the user's last actiontime_passed
word_document from rmarkdown, but has an added option not to break on errorword_document