-
Notifications
You must be signed in to change notification settings - Fork 83
Description
Below worked perfectly a few days ago. I can not remember which package I have updated so this is now broken...
baseIQUrl <- "https://www.iqpagedoesnotexist.com/" # This page dies not exist since I can not disclose which page I am logging into
iqPageSession <- html_session(baseIQUrl)
iqPageSession <- iqPageSession %>% follow_link("Log In")
Navigating to https://www.iqpagedoesnotexist.com/my-account
iqLogInForm <- iqPageSession %>% html_node("form") %>% html_form()
Warning message:
In node_find_one(x$node, x$doc, xpath = xpath, nsMap = ns) :
3 matches for .//form: using first
iqLogInForm <- set_values(iqLogInForm, username="mysupersecretusername", password="mysupersecretpassword)
iqPageSession <- submit_form(iqPageSession, iqLogInForm, submit="login")
Error: not compatible with STRSXP
traceback()
3: stop(list(message = "not compatible with STRSXP", call = NULL,
cppstack = NULL)) at RcppExports.R#110
2: xml2::url_absolute(form$url, session$url)
1: submit_form(iqPageSession, iqLogInForm, submit = "login")
sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.2 LTS
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=en_US.UTF-8
[9] LC_ADDRESS=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rvest_0.2.0.9000 xml2_0.1.0.9000
[3] listviewer_0.1 KMData_0.0.1
[5] OpeningGap_0.0.1 RQuantLib_0.4.0
[7] qmao_1.6.10 RCurl_1.95-4.5
[9] bitops_1.0-6 stringr_1.0.0
[11] plyr_1.8.2 gdata_2.16.1
[13] timeDate_3012.100 lubridate_1.3.3
[15] data.table_1.9.5 XML_3.98-1.1
[17] httr_0.6.1.9000 twsInstrument_1.4-10
[19] FinancialInstrument_1.2.0 quantmod_0.4-4
[21] TTR_0.22-0 IBrokers_0.9-10
[23] xts_0.9.874 zoo_1.7-10
[25] jsonlite_0.9.16 rj_2.0.3-2
loaded via a namespace (and not attached):
[1] Rcpp_0.11.6 tools_3.2.0 digest_0.6.8 rj.gd_2.0.0-1
[5] memoise_0.2.1 lattice_0.20-31 shiny_0.12.0.9002 curl_0.6.9000
[9] htmlwidgets_0.4.1 gtools_3.4.2 grid_3.2.0 R6_2.0.0.9000
[13] RJSONIO_1.0-3 selectr_0.2-3 pander_0.5.1 magrittr_1.5
[17] htmltools_0.2.6 mime_0.3 xtable_1.7-3 httpuv_1.3.2
[21] stringi_0.4-1 chron_2.3-45