-
Notifications
You must be signed in to change notification settings - Fork 293
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
st_write with '~' in path gives error #456
Comments
Indeed, this is linux-only; in addition, st_write(nc, normalizePath('~/nc.geojson')) ? |
Hi Edzer, this is a year old but I'm just putting in my two cents. I do think this will be confusing for most users. I'm experienced with the package and yet I just spent 15 minutes problem solving on this one until I found this issue. |
Thanks - should work now! |
Great! I'll give it a try. I think this will help simplify the process for many Mac users. |
I still experience this on Arch Linux.
|
@mwip Your |
@jsta Thanks for the immediate response. Actually forgot to update. |
@edzer Thanks, this method is quite awesome! |
Providing a path to st_write (on linux) that includes the
~
as a shorthand for the home directory gives an error.st_read
doesn't result in the same error.Session info
``` sessionInfo() #> R version 3.4.1 (2017-06-30) #> Platform: x86_64-pc-linux-gnu (64-bit) #> Running under: elementary OS 0.4.1 Loki #> #> Matrix products: default #> BLAS: /usr/lib/libblas/libblas.so.3.6.0 #> LAPACK: /usr/lib/lapack/liblapack.so.3.6.0 #> #> locale: #> [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C #> [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 #> [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 #> [7] LC_PAPER=en_US.UTF-8 LC_NAME=C #> [9] LC_ADDRESS=C LC_TELEPHONE=C #> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C #> #> attached base packages: #> [1] stats graphics grDevices utils datasets methods base #> #> other attached packages: #> [1] sf_0.5-4 #> #> loaded via a namespace (and not attached): #> [1] Rcpp_0.12.12 digest_0.6.12 rprojroot_1.2 grid_3.4.1 #> [5] DBI_0.7 backports_1.1.0 magrittr_1.5 evaluate_0.10 #> [9] units_0.4-5 stringi_1.1.5 rmarkdown_1.6 tools_3.4.1 #> [13] udunits2_0.13 stringr_1.2.0 yaml_2.1.14 compiler_3.4.1 #> [17] htmltools_0.3.6 knitr_1.16 ```The text was updated successfully, but these errors were encountered: