-
Notifications
You must be signed in to change notification settings - Fork 21
Description
This issue is for record keeping of a problem that someone with FRA encountered trying to download the SAC Tool.
Error
Loading required package: tools
Warning in sub(" *\\r$", "", volNames) :
' to a wide stringate '<83>{<83><8a><83><85><81>[<83><80>
Warning: Error in sub: input string 4 is invalid
40: sub
39: getVolumes()
38: server [C:\Users\username\SS-DL-tool-master\SS-DL-tool-master/server.R#5419]
1: shiny::runApp
Error in sub(" *\\r$", "", volNames) : input string 4 is invalid
Machine Type
Windows 11 (64bit)
Solution found by user
The cause was multibyte characters (i.e., Japanese) appeared in a volume label of a partition of a drive in the machine.
After deleting the characters (i.e., empty volume label), the app was properly launched.
I suspect that when shiny searched for a label of each volume, the multibyte characters caused an error.
https://rdrr.io/cran/shinyFiles/src/R/aaa.R
I referred to the link above and detected the multibyte characters by using the following method in the Powershell.
[System.IO.DriveInfo]::GetDrives()
When I divided the C drive into two partitions at the initial setup of the machine, the multibyte-character volume label was automatically set for a new partition.