business-science / modeltime

Modeltime unlocks time series forecast models and machine learning in one framework
https://business-science.github.io/modeltime/
Other
532 stars 82 forks source link

namespace ‘vctrs’ 0.2.4 is already loaded, but >= 0.3.0 is required #35

Closed stepminer closed 4 years ago

stepminer commented 4 years ago

library(tidymodels) Error: package or namespace load failed for ‘tidymodels’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘rlang’ 0.4.6 is being loaded, but >= 0.4.7 is required library(modeltime) Error: package or namespace load failed for ‘modeltime’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘vctrs’ 0.2.4 is already loaded, but >= 0.3.0 is required library(tidyverse) Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘vctrs’ 0.2.4 is already loaded, but >= 0.3.0 is required library(lubridate)

Attaching package: ‘lubridate’

The following objects are masked from ‘package:base’:

date, intersect, setdiff, union

library(timetk) Error: package or namespace load failed for ‘timetk’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): namespace ‘dplyr’ 0.8.5 is already loaded, but >= 1.0.0 is required

mdancho84 commented 4 years ago

You may need to upgrade R >= 4.0.0. It's showing rlang >= 0.4.7 and vctrs >= 0.3.0 are required. Your R is likely too old for these upgraded packages, which is preventing newer versions of rlang and vctrs from downloading.

stepminer commented 4 years ago

Thanks, I Downloaded R version 4.0.2 and reinstalled the package modeltime. Still having issues:

library(tidymodels) Error in library(tidymodels) : there is no package called ‘tidymodels’ library(modeltime) library(tidyverse) Error in library(tidyverse) : there is no package called ‘tidyverse’ library(lubridate)

mdancho84 commented 4 years ago

Yes, you need to install these libraries - try devtools::install_github("business-science/modeltime", dependencies = TRUE)

This will install the latest development version of modeltime, which has a few improvements and will install all of the dependencies associated with it.

spsanderson commented 4 years ago

Looks like those libraries are not installed but I thought the install of modeltime would do that,

Sent from my iPhone

On Sep 4, 2020, at 7:22 AM, stepminer notifications@github.com wrote:

 Thanks, I Downloaded R version 4.0.2 and reinstalled the package modeltime. Still having issues:

library(tidymodels) Error in library(tidymodels) : there is no package called ‘tidymodels’ library(modeltime) library(tidyverse) Error in library(tidyverse) : there is no package called ‘tidyverse’ library(lubridate)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

mdancho84 commented 4 years ago

No, the tidymodels and tidyverse are suggested, not required. To get them you’ll need to install them specifically or to use dependencies = TRUE.

What is installed is several packages that tidymodels and tidyverse contain like dplyr and parsnip. But the meta packages are not installed.

spsanderson commented 4 years ago

Gotcha

Sent from my iPhone

On Sep 4, 2020, at 8:13 AM, Matt Dancho notifications@github.com wrote:

 No, the tidymodels and tidyverse are suggested, not required. To get them you’ll need to install them specifically or to use dependencies = TRUE.

What is installed is several packages that tidymodels and tidyverse contain like dplyr and parsnip. But the meta packages are not installed.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

stepminer commented 4 years ago

The script does not work. I will try to install the packages manually. devtools::install_github("business-science/modeltime", dependencies = TRUE) Error in loadNamespace(name) : there is no package called ‘devtools’

spsanderson commented 4 years ago

Do you have devtools installed?

Sent from my iPhone

On Sep 4, 2020, at 9:07 AM, stepminer notifications@github.com wrote:

 The script does not work. I will try to install the packages manually. devtools::install_github("business-science/modeltime", dependencies = TRUE) Error in loadNamespace(name) : there is no package called ‘devtools’

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

spsanderson commented 4 years ago

maybe try something like

if(!require(pacman)) {install.packages("pacman")}
pacman::p_load(
"tidyverse","tidyquant","lubridate","modeltime"
)
stepminer commented 4 years ago

Thanks I was able to install the packages manually and test the ModelTime Tutorial. It performed successfully on the m750 data, except for the EARTH model although I also manually installed the package.

models_tbl <- modeltime_table(

  • model_fit_arima_no_boost,
  • model_fit_arima_boosted,
  • model_fit_ets,
  • model_fit_prophet,
  • model_fit_lm,
  • wflw_fit_mars
  • ) Error in eval_tidy(xs[[j]], mask) : object 'wflw_fit_mars' not found

Otherwise its Great. Modeltime m750

spsanderson commented 4 years ago

It is telling you the object does not exist in the environment

mdancho84 commented 4 years ago

Closing - This appears to be due to the user needing to install packages, which is a local issue to the user and not a bug with the modeltime software.