r-lib / devtools

Tools to make an R developer's life easier
https://devtools.r-lib.org
Other
2.37k stars 755 forks source link

`devtools::release()` breaks with unicode characters in `tempdir()` path #2508

Closed mikolajsp closed 8 months ago

mikolajsp commented 1 year ago

Hello,

I've encountered an issue with the devtools::submit_cran() function. I would like to mention at the beginning, that I'm not sure if the problem is in the devtools package, or in some dependency like httr.

I'm working in a Windows environment, and my username has a unicode character in it, specifically "ł". For this reason, the default Windows temporary directory

Replication of the issue:

  1. Set the system environment variable TMPDIR to a path containing the character "ł", in my case it is C:\Users\Mikołaj\AppData\Local\Temp

  2. Try to release something to CRAN

Workaround:

Set the TMPDIR to a path without Unicode characters e.g. C:\temp

jennybc commented 1 year ago

Possibly a duplicate of #2422

I would need to see more specifics to know for sure (a reprex, including session info), but I suspect the root problem might be one of the known issues in fs, such as https://github.com/r-lib/fs/issues/383.

jennybc commented 8 months ago

This thread seems to have gone cold.