iclip | R Documentation |
iface
specification from an example dataframeWhen developing with interfacer
it is useful to be able to base a function
input off a prototype that you are for example using as testing. This
function generates an interfacer::iface
specification for the supplied data
frame and copies it to the clipboard so that it can be pasted into the
package code you are working on.
iclip(df, df_name = deparse(substitute(df)))
df |
a prototype dataframe |
df_name |
an optional name for the parameter (defaults to |
If the dataframe contains one or more list columns with nested dataframes
the nested dataframes are also defined using a second iface
specification.
nothing, populates clipboard
if (interactive()) iclip(iris)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.