Hi,
I just tested RCGLS::download_CGLS_data() and readLines(con) returned an error: invalid url. This happens when the user and/or password contains special characters like "@" or "#" which have to be percent-encoded. I suggest to change url <- paste0("https://", paste(username, password, sep = ":"), product.link) to url <- paste0("https://", paste(URLencode(username), URLencode(password), sep = ":"), product.link).
Hi,
I just tested
RCGLS::download_CGLS_data()andreadLines(con)returned an error: invalid url. This happens when the user and/or password contains special characters like "@" or "#" which have to be percent-encoded. I suggest to changeurl <- paste0("https://", paste(username, password, sep = ":"), product.link)tourl <- paste0("https://", paste(URLencode(username), URLencode(password), sep = ":"), product.link).