Official repository for the Machine Learning in Business Analytics course taught at HEC Lausanne.
We use renv
for package management. When running the website for the first time, execute the following from R (at the root of the project with mlba.Rproj
):
renv::restore()
It prompts whether you would like to activate and install the packages, and you must select the option (1) to do so. The command above installs the packages from the renv.lock
file. Then run the following to start the website from the command line/terminal (unless you're using Rstudio, in which can go to Build > Render Website
to render everything at once).
quarto preview
When publishing, first run the following:
quarto render
In case of memory issues, see this help page from Quarto and increase your limit
export QUARTO_DENO_EXTRA_OPTIONS=--v8-flags=--max-old-space-size=16384