PMassicotte / gtrendsR

R functions to perform and display Google Trends queries
352 stars 112 forks source link

namespace ‘vctrs’ 0.4.2 is already loaded, but >= 0.5.0 is required #435

Closed shrikant2002 closed 1 year ago

shrikant2002 commented 1 year ago

USING THIS CODE ALMOST EVERY DAY if (!require("devtools")) install.packages("devtools") devtools::install_github("PMassicotte/gtrendsR")

BUT TODAY GETTING AN ERROR


Error: package or namespace load failed for ‘gtrendsR’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 namespace ‘vctrs’ 0.4.2 is already loaded, but >= 0.5.0 is required
Traceback:

1. library(gtrendsR)
2. tryCatch({
 .     attr(package, "LibPath") <- which.lib.loc
 .     ns <- loadNamespace(package, lib.loc)
 .     env <- attachNamespace(ns, pos = pos, deps, exclude, include.only)
 . }, error = function(e) {
 .     P <- if (!is.null(cc <- conditionCall(e))) 
 .         paste(" in", deparse(cc)[1L])
 .     else ""
 .     msg <- gettextf("package or namespace load failed for %s%s:\n %s", 
 .         sQuote(package), P, conditionMessage(e))
 .     if (logical.return && !quietly) 
 .         message(paste("Error:", msg), domain = NA)
 .     else stop(msg, call. = FALSE, domain = NA)
 . })
3. tryCatchList(expr, classes, parentenv, handlers)
4. tryCatchOne(expr, names, parentenv, handlers[[1L]])
5. value[[3L]](cond)
6. stop(msg, call. = FALSE, domain = NA)
7. ```