lowndrul
lowndrul

Reputation: 3815

Renaming RStudio project under version control

What's the right way to rename an RStudio project (esp., when that project is under version control)?

E.g., I created an RStudio project with version control in "~/myproject". Then I decided I wanted to rename the project to "myproject1". So I

  1. renamed "~/myproject" as "~/myproject1"
  2. renamed "myproject.Rproj" as "myproject1.Rproj"
  3. committed the "rename" changes with git via RStudio.

Everything seems to be fine. But I have a suspicion I'm missing something and that I'm going to be surprised by some project behavior down the line.

Upvotes: 52

Views: 17293

Answers (1)

mkhezr
mkhezr

Reputation: 624

If your project is also an R package, you need to edit the DESCRIPTION file and change the value of "Package" property to reflect the new name.

Upvotes: 24

Related Questions