Skip to content

Initializing renv leads to a confusing error when restarting R #4

@wzbillings

Description

@wzbillings

After making a repo based on this template, I cloned the repo and initialized renv with renv::init() using renv 1.0.7. When restarting R and running renv's activation script, I then get the following error message.

Warning message:
In yaml::yaml.load(string = text, eval.expr = FALSE, handlers = list(r = function(yaml) { :
  NAs introduced by coercion: 1,2 is not an integer

This can be resolved by adding the products/ folder to a .renvignore file, suggesting that something in the YAML header for one of the products files doesn't seem to work right with renv. Will update this issue when I can figure out what causes it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions