-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read.las fails when path contains special characters on windows with v1.3.2 #40
Comments
Paths with diacritic symbols should be punish by penalties. Sadly I do not write the laws 😉 Let make some tests. Copy paste the following. I have 0 error but you will probably have 2 errors for test1 <- system.file("extdata", "example.laz", package="rlas")
test2 <- paste0(tempdir(), "/abcdé/test.las")
test3 <- paste0(tempdir(), "/abcd/testé.las")
dir2 <- dirname(test2)
dir3 <- dirname(test3)
dir.create(dir2)
dir.create(dir3)
file.copy(test1, test2)
file.copy(test1, test3)
x <- rlas::read.las(test1)
x <- rlas::read.las(test2)
x <- rlas::read.las(test3) |
As a predominately windows user and the owner of a surname with both an accent and a space… I gave up on this a long time ago... ;)
|
@bi0m3trics do you encounter issues on Windows like @jfbourdon? |
I agree that diacritic symbols should be avoided in pathnames... but sometimes they are there! test1 -> pass |
Which tests have you made? Different R versions? Different |
R 3.4.3 + rlas 1.2.8 => pass I would like to compile an older version of |
@Jean-Romain
Running:
I then removed the space but left the special character, and it gave me the same error, and then I removed the special character and put the space back and it ran fine (which I expected). |
I reproduced on my virtual machine with the example I wrote above. Bug confirmed. |
I finally managed to get Rtools working and made more tests: R 3.4.3 + rlas 1.3.2 (from source) => pass R 3.5.0 + rlas 1.2.7 (from source) => fail R 3.5.1 + rlas 1.3.2 (from source) => fail R 3.6.0 + rlas 1.2.7 (from source) => fail So it may be more related to R than to |
Thank you @jfbourdon . I actually spotted the issue and its location but I was not able to reproduce it in simple cases. Without your link I would not have found that The point is that this problem actually happen from R 3.5.0 so almost a year and nobody reported it. |
Linked to issue #38, it seems that, at least on Windows, the path given to
read.las
cannot contain any accent.rlas
1.2.7 and 1.2.8 work as expected, but 1.3.2 doesn't.The text was updated successfully, but these errors were encountered: