This is a file with a function in it. The function's output depends on dependency.txt
and the function gets used in script_to_freeze.R
.
print_dependency_contents = function( ){ print( readLines( "dependency.txt" )) write.table(rnorm(5), file.path( Sys.getenv()[["FREEZR_DESTINATION"]], "custom_user_output.txt" ) ) hist( rnorm(50), main = "I'm a histogram!" ) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.