I am new to curlconverter. I tried one of the examples from the README, and got this error:
httpbinrhcurl <- "curl 'https://httpbin.org/headers' -H 'pragma: no-cache' -H 'accept-encoding: gzip, deflate, sdch' -H 'accept-language: en-US,en;q=0.8' -H 'upgrade-insecure-requests: 1' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.39 Safari/537.36' -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8' -H 'cache-control: no-cache' -H 'referer: https://httpbin.org/' --compressed"
straight <- straighten(httpbinrhcurl)
res <- make_req(straight)
Error: Clipboard on X11 requires that the DISPLAY envvar be configured.
sessionInfo()
R version 3.4.2 (2017-09-28)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.3 LTS
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 LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] curl_3.0 stringr_1.2.0 V8_1.5 curlconverter_0.8.2
[5] clipr_0.4.0.9000 digest_0.6.12 rvest_0.3.2 xml2_1.1.1
[9] httr_1.3.1
loaded via a namespace (and not attached):
[1] Rcpp_0.12.13 bindr_0.1 magrittr_1.5 R6_2.2.2 rlang_0.1.4
[6] dplyr_0.7.4 tools_3.4.2 yaml_2.1.14 assertthat_0.2.0 tibble_1.3.4
[11] bindrcpp_0.2 purrr_0.2.4 scrapr_0.0.0.9000 formatR_1.5 glue_1.2.0.9000
[16] stringi_1.1.5 compiler_3.4.2 jsonlite_1.5 pkgconfig_2.0.1
I am new to curlconverter. I tried one of the examples from the README, and got this error:
httpbinrhcurl <- "curl 'https://httpbin.org/headers' -H 'pragma: no-cache' -H 'accept-encoding: gzip, deflate, sdch' -H 'accept-language: en-US,en;q=0.8' -H 'upgrade-insecure-requests: 1' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.39 Safari/537.36' -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8' -H 'cache-control: no-cache' -H 'referer: https://httpbin.org/' --compressed"
straight <- straighten(httpbinrhcurl)
res <- make_req(straight)
Error: Clipboard on X11 requires that the DISPLAY envvar be configured.
sessionInfo()
R version 3.4.2 (2017-09-28)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.3 LTS
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 LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] curl_3.0 stringr_1.2.0 V8_1.5 curlconverter_0.8.2
[5] clipr_0.4.0.9000 digest_0.6.12 rvest_0.3.2 xml2_1.1.1
[9] httr_1.3.1
loaded via a namespace (and not attached):
[1] Rcpp_0.12.13 bindr_0.1 magrittr_1.5 R6_2.2.2 rlang_0.1.4
[6] dplyr_0.7.4 tools_3.4.2 yaml_2.1.14 assertthat_0.2.0 tibble_1.3.4
[11] bindrcpp_0.2 purrr_0.2.4 scrapr_0.0.0.9000 formatR_1.5 glue_1.2.0.9000
[16] stringi_1.1.5 compiler_3.4.2 jsonlite_1.5 pkgconfig_2.0.1