knitr::opts_chunk$set(echo = TRUE) rmonic::setup() model_name <<- rmonic::slug("{{model_name}}")
{{{model_init}}}
{{{model_fit}}}
{{{model_predict}}}
{{{model_store}}}
{{{model_end}}}
## Store notebook changes in model components. ## This means that the code above will take effect during model backtesting. if(existsFunction("model_init")) rmonic::write_function(model_init, file.path(k_path_models, model_name, paste0("model_init.R"))) if(existsFunction("model_fit")) rmonic::write_function(model_fit, file.path(k_path_models, model_name, paste0("model_fit.R"))) if(existsFunction("model_predict")) rmonic::write_function(model_predict, file.path(k_path_models, model_name, paste0("model_predict.R"))) if(existsFunction("model_store")) rmonic::write_function(model_store, file.path(k_path_models, model_name, paste0("model_store.R"))) if(existsFunction("model_end")) rmonic::write_function(model_end, file.path(k_path_models, model_name, paste0("model_end.R")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.