Nothing
#' @export
print.typed <- function(x, ...) {
x2 <- x
attributes(x2) <- NULL
writeLines(text = "# typed function")
print(x2)
if(!identical(attr(x, "return_type"), NA)) {
writeLines(text = paste0(
"# Return type: ", deparse1(attr(x ,"return_type"))))
}
if(length(attr(x, "arg_types"))) {
writeLines(text = "# Arg types:")
for(arg in names(attr(x, "arg_types"))) {
writeLines(text = paste0("# ",
arg, ": ", deparse1(attr(x ,"arg_types")[[arg]])))
}
}
invisible(x)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.