Skip to content

Commit 4526fb1

Browse files
authored
Merge pull request #154 from AdrianHordyk/master
Update install.R
2 parents 0a45da9 + eb5cd08 commit 4526fb1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

R/install.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ and enter the row number of the file-version you'd like to install: "
499499
install.Rtools <- function(choose_version = TRUE,
500500
check=FALSE,
501501
GUI = TRUE,
502-
page_with_download_url = 'https://cran.r-project.org/bin/windows/Rtools/',
502+
page_with_download_url = 'https://cran.r-project.org/bin/windows/Rtools/history.html',
503503
...
504504
) {
505505
# choose_version==T allows the user to choose which version of Rtools he wishes to install
@@ -540,7 +540,8 @@ install.Rtools <- function(choose_version = TRUE,
540540
exe_filename <- paste("Rtools" , version_to_install_no_dots , ".exe", sep = "")
541541
} else { # else - it means we have a version of R which is beyond our current knowledge of Rtools (or that the user asked to choose a version), so we'll have to let the user decide on what to do.
542542
require2("htmltab")
543-
TABLE <- htmltab::htmltab(page_with_download_url)
543+
TABLE <- htmltab::htmltab(page_with_download_url, 1)
544+
544545
# require2("XML")
545546
# TABLE <- XML::readHTMLTable(page_with_download_url, header=T,stringsAsFactors=F)[[1]]
546547
# example: http://stackoverflow.com/questions/1395528/scraping-html-tables-into-r-data-frames-using-the-xml-package

0 commit comments

Comments
 (0)