You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Attempting to create a new R Package project in a directory containing a special character results in an 'Error Creating Project' failure. #6784
Open RStudio and select File > New Project... > New Directory > R Package.
Fill in the 'Package name:' field and then select the 'Browse..' button next to 'Create project as subdirectory of:'.
Browse to the newly created folder containing a special character name and select Open > Create Project.
Describe the problem in detail
The project is not created and an error message stating 'Failed to create package .Rproj file' is presented to the user. Screenshot below:
Describe the behavior you expected
The new project is successfully created in the selected directory.
Notes
Note 1: Not sure if this is a side-effect of this issue or a bug of it's own, but after the issue occurs, a new folder is created in the working directory. Example:
I created a folder titled '®' and chose that as my target for the new package project. After the error occurred, there is a new folder titled '®' in the same directory as the '®' folder I originally created.
Note 2: This issue could relate to other issues we've seen involving special characters in the working directory: 2194, 6701, 3166, 4469, and 5560.
Activity
kevinushey commentedon Apr 30, 2020
Likely caused because of a missing
Encoding() <- "UTF-8"call in this function:rstudio/src/cpp/session/modules/SessionPackages.R
Line 787 in 8ee442b