Skip to content

create_from_github() seems to be permanently changing the working directory #1900

Closed
@DavisVaughan

Description

@DavisVaughan

In R, but not in RStudio, run something like this (you will have to tweak it for your directory)

usethis::create_from_github("r-lib/crayon", destdir = "~/files/r/packages/", fork = TRUE)

This should not launch a new RStudio session. It should keep you in the current R session.

However, if you then run getwd() it looks like it has left us permanently moved to the new crayon folder

> getwd()
[1] "/Users/davis/files/r/packages/crayon"

which is not desirable

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