Skip to content

installed packages not found when setting some options in .Rprofile #2

@verajosemanuel

Description

@verajosemanuel

Double checked which .Rprofile is loading to be sure.
Using the example from documentation:

my_custom_params <- list(
  author = "Victor",
  project = list(
    folders = list(
      default = c("R", "inst", "man", "data-raw", "data", "tests"),
      selected = c("R", "man")
    ),
    packages = list(
      default = rownames(installed.packages()),
      selected = "shiny"
    )
  )
)
options("addinit" = my_custom_params)

an error is shown:

Error in installed.packages() : 
  "installed.packages" not found

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