This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Description
I am running into an issue with creating gists with unicode characters.
The characters are mangled when I try this code:
library(curl)
d3 <- "https://github.com/mbostock/d3/archive/v3.0.6.zip"
tmp <- tempfile()
curl::curl_download(d3, tmp, mode = "wb")
unzip(tmp)
unlink(tmp)
library(gistr)
gistr::gist_create(files = "d3-3.0.6/d3.js")
This might be a Windows issue because the same code works fine for @cpsievert .
> sessionInfo()
R version 3.1.3 (2015-03-09)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8 x64 (build 9200)
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] gistr_0.1.0 curl_0.5
loaded via a namespace (and not attached):
[1] bitops_1.0-6 digest_0.6.8 evaluate_0.5.5 formatR_1.0
[5] httpuv_1.3.2 httr_0.6.1 jsonlite_0.9.14 knitr_1.9
[9] magrittr_1.5 R6_2.0.1 Rcpp_0.11.4 RCurl_1.95-4.5
[13] stringr_0.6.2 tools_3.1.3