5

following an update of my R environment, I keep receiving this error:

Error in overscope_eval_next(overscope, expr) : object 'G' not found

Documentation says: "A model. If supplied, any predictors needed for the model not present in ... will be filled in with "typical" values."

This seems to work for the given example in the documentation. However, there seems to be a problem with the given example below. There was no problem with previous versions.

library(tidyverse)
library(hexbin)
library(modelr)
smaller <- diamonds %>% filter(carat < 3)
mod_diamond2 <- lm(price ~ carat + color + cut + clarity, data = smaller)
grid <- smaller %>%  data_grid(cut, .model = mod_diamond2) %>% 
add_predictions(mod_diamond2)

Any ideas? Thanks in advance

Jan
  • 51
  • 2
  • I tried the code in RStudio 1.0.153 and R version 3.3.2 and i don't get any error. – Chakra Sep 19 '17 at 09:06
  • Thanks for your feedback. Well, I have RStudio 1.0.153 and R 3.4.1 running. tidyverse is also the latest cran package. – Jan Sep 20 '17 at 09:18

0 Answers0