Skip to content

Ensure flexibility of environment deployment path in the generated init file #12

Description

@stefanoborini

The problem is the following: when developing multiple apps relying on the same environment, the Rprofile script does

source('.env/default/init.R')

the init file in turn does

.libPaths(c('.envs/default/lib'))

The problem is that of course if the directories are not properly positioned, this mechanism will fail.

Unfortunately R does not provide an easy way to lookup the current script path, which means that we'll have to rely on variables in the Rprofile to make this more relocatable

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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