knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
Future is a tool for creating healthy meals. You can calculate your BMI, calculate energy value of preparing meal and calculate glycemic index of this meal.
You can install the development version of Future from GitHub with:
# install.packages("devtools") devtools::install_github("FUTUR-TEAM/Future")
By default, Future was prepared as Shiny app, but you can use single function from command line. This is a basic example which shows you how to calculate percent of macronutrients of meal from lists of using products and their weights
library(Future) df <- data.frame(products = c("Banan","Kawior"), weight = c(50,50), stringsAsFactors = FALSE) macro_df <- macronutrients_of_meal(as.list(df$products), as.list(df$weight)) macro_df macro_percent_graph(macro_df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.