search for: curl_result

Displaying 2 results from an estimated 2 matches for "curl_result".

Did you mean: cur_result
2018 Oct 23
2
Suggestion: Make CRAN source URLs immutable
...ill change to https://cran.r-project.org/src/contrib/Archive/httr_1.3.1.tar.gz. The implications of this are that if I want to write a script which installs version 1.3.1 of `httr`, I need to do so like this: ``` httr_url <- "https://cran.r-project.org/src/contrib/httr_1.3.1.tar.gz" curl_result <- system(paste0("curl --head ", httr_url), intern=TRUE) if (grepl("404", curl_result[1])) { httr_url <- " https://cran.r-project.org/src/contrib/Archive/httr_1.3.1.tar.gz" } install.packages(httr_url) ``` I think there are two obvious ways of remedying this...
2018 Oct 24
0
Suggestion: Make CRAN source URLs immutable
...n.r-project.org/src/contrib/Archive/httr_1.3.1.tar.gz. > The implications of this are that if I want to write a script which > installs version 1.3.1 of `httr`, I need to do so like this: > ``` > httr_url <- "https://cran.r-project.org/src/contrib/httr_1.3.1.tar.gz" > curl_result <- system(paste0("curl --head ", httr_url), intern=TRUE) > if (grepl("404", curl_result[1])) { > httr_url <- " > https://cran.r-project.org/src/contrib/Archive/httr_1.3.1.tar.gz" > } > install.packages(httr_url) > ``` > I think there are...