Running examples in ‘NutrienTrackeR-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: nutrientIntakePlot
> ### Title: Visualize nutrient intake levels
> ### Aliases: nutrientIntakePlot
> 
> ### ** Examples
> 
> ## Load data
> data(food_composition_data)
> data(NHI_nutrient_recommendations)
Warning in data(NHI_nutrient_recommendations) :
  data set ‘NHI_nutrient_recommendations’ not found
> data(nutrient_group)
> data(sample_diet_USDA) ## contains an example of a one-week diet
> 
> ## Get daily intake
> balanceF <- dietBalance(my_daily_food = sample_diet_USDA,
+                        food_database = "USDA", age = 27, gender = "female")
The results correspond to an average of 7 days
Total energy intake (kcal): 1795
The intake level of the following nutrients is below the RDA:
                            nutrient proportion(%RDA)         group
1                          Water (g)         30.97156 macronutrient
2                   Calcium, Ca (mg)         58.25710       mineral
3                    Sodium, Na (mg)         59.84527       mineral
4                  Potassium, K (mg)         67.10106       mineral
5                      Iron, Fe (mg)         99.56111       mineral
6           Vitamin D (D2 + D3) (ug)         11.28667       vitamin
7  Vitamin E (alpha-tocopherol) (mg)         31.04000       vitamin
8                Vitamin A, RAE (ug)         45.67343       vitamin
9                Choline, total (mg)         85.32682       vitamin
10                  Folate, DFE (ug)         96.62500       vitamin
The intake level of the following nutrients is above the TUIL:
            nutrient proportion(%RDA)   group
1 Magnesium, Mg (mg)         223.7326 mineral
2 Manganese, Mn (mg)         643.8333 mineral
> 
> ## Generate plot
> nutrientIntakePlot(daily_intake = balanceF)
Error in grid.Call.graphics(C_setviewport, vp, TRUE) : 
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
Calls: <Anonymous> ... push.vp.vpTree -> push.vp -> push.vp.viewport -> grid.Call.graphics
Execution halted