-
Notifications
You must be signed in to change notification settings - Fork 1
strange failure on first try #1
Copy link
Copy link
Open
Description
I was trying the basic example as in README but with a different URL and got a criptic (for me) failure, here is the reprex:
library(reapr)
x <- reap_url("http://www.antonakis.co.uk/acars.php?page=registers")
#> No encoding supplied: defaulting to UTF-8.
#> Error: 'NA' does not exist in current working directory ('C:/Users/spi/dev/temp/1/RtmpA3AZMy/reprex475c72f2d47').standard output and standard error
-- nothing to show --Created on 2020-01-31 by the reprex package (v0.3.0)
But when I execute in my RStudio I get some stacktrace:
> library(reapr)
> x <- reap_url("http://www.antonakis.co.uk/acars.php?page=registers")
No encoding supplied: defaulting to UTF-8.
Error: 'NA' does not exist in current working directory ('C:/Users/spi/repos/registrar').
10.stop("'", path, "' does not exist", if (!is_absolute_path(path)) paste0(" in current working directory ('",
getwd(), "')"), ".", call. = FALSE)
9.check_path(path)
8.path_to_connection(x)
7.read_xml.character(x, encoding = encoding, ..., as_html = TRUE,
options = options)
6.read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options)
5.withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
4.suppressWarnings(read_xml(x, encoding = encoding, ..., as_html = TRUE,
options = options))
3.read_html.default(raw_html, encoding = encoding)
2.xml2::read_html(raw_html, encoding = encoding) at read-url.R#60
1.reap_url("http://www.antonakis.co.uk/acars.php?page=registers")
Any idea where to start to debug?
PS: if I try the URL as in the README, all works...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels