Skip to content

.renvignore file contents not ignored with manual dependencies #1929

@sjenkins20

Description

@sjenkins20

We're new to using renv. We used the renv::init() command to detect and install our dependencies. It was installing dependencies from a folder we do not use, so we added this folder to a .renvignore file and this solved the problem.

Unfortunately, the dependencies which were detected and installed caused all our tests to fail. We switched to using renv::init(bare=TRUE) and went back to manually installing packages, but into renv. When this process finishes, there is an error message
image
These packages are only used in the folder included in the .renvignore file. This is similar to the message we obtain from renv::status().
image
It seems that the status command isn't ignoring the folders in .renvignore when you install manually.

Running renv::snapshot(), the following error is generated.
image
The issue with status is preventing us from generating a snapshot.

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