Skip to content

Error: cannot coerce type 'closure' to vector of type 'character' #102

Description

@farshid-vahid

When attaching libraries

library(groundhog)
today <- "2023-08-08"
groundhog.library(xts,today)
groundhog.library(demography,today)
groundhog.library(tidyverse,today)
groundhog.library(readxl,today)
groundhog.library(ggplot2,today)
groundhog.library(forecast,today)

it attaches all libraries successfully until it gets to the last one (forecast) and then stops with the following message:

Error in as.character(text) :
cannot coerce type 'closure' to vector of type 'character'
3. regexpr("library\\(", x)
2. sandwich.library(pkg)
1. groundhog.library(forecast, today)

The last three lines are given after I click on show traceback in
RStudio 2023.06.1+438 "Mountain Hydrangea" Release (0854207b2c64f6a7049e668177d2753b7e69d57a, 2023-06-27) for windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2023.06.1+438 Chrome/110.0.5481.208 Electron/23.3.0 Safari/537.36.
I am using R version is 4.3.1 and groundhog version 3.1.0 on Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions