Skip to content

Commit af7ead2

Browse files
authored
Merge pull request #139 from ajrgodfrey/master
fix to is.x64()
2 parents ecbc43e + 9dc43d1 commit af7ead2

6 files changed

Lines changed: 13 additions & 11 deletions

File tree

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: installr
22
Type: Package
33
Title: Using R to Install Stuff on Windows OS (Such As: R, 'Rtools', 'RStudio', 'Git', and More!)
4-
Version: 0.22.1
5-
Date: 2019-08-16
4+
Version: 0.22.2
5+
Date: 2019-11-28
66
Authors@R: c(person("Tal", "Galili", role = c("aut", "cre", "cph"), email =
77
"tal.galili@gmail.com", comment = "http://www.r-statistics.com"),
88
person("Barry", "Rowlingson", role = "ctb", email =

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
installr 0.22.2 (2019-11-28)
2+
3+
small edits to improve 32/64 bit architecture detection and appropriate download for Python.
4+
5+
16
installr 0.22.0 (2019-08-02)
27
---------------------------
38

R/installPython.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#' @export
2727
#' @author Tal Galili and A. Jonathan R. Godfrey
2828
#' @param page_with_download_url a link to the list of download links for Python
29-
#' @param x64 logical: fetch a 64 bit version. default checks architecture of current R session.
29+
#' @param x64 logical: fetch a 64 bit version. default is TRUE; used to check architecture of current R session.
3030
#' @param version_number Either 2 or 3. Version 2/3 will lead to download of v2.7.xx/3.6.xx respectively.
3131
#' @param ... extra parameters to pass to \link{install.URL}
3232
#' @examples
@@ -37,7 +37,7 @@
3737
#' }
3838
install.python = function (page_with_download_url = "https://www.python.org/downloads/windows/",
3939
version_number = 3,
40-
x64 = is.x64(),
40+
x64 = TRUE,
4141
...)
4242
{
4343
page <- readLines(page_with_download_url, warn = FALSE)

R/is.x.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,9 @@ is.windows <- function(...) unname(Sys.info()["sysname"] == "Windows")
6262
#' @return Returns TRUE/FALSE if the R session is running on Windows 64-bit or not.
6363
#' @export
6464
#' @examples
65-
#' \dontrun{
6665
#' is.x64() # returns TRUE on my machine.
67-
#' }
68-
is.x64 <- function(...) unname(Sys.info()["release"] == ">= 8 x64")
66+
67+
is.x64 <- function(...) .Platform$r_arch == "x64"
6968

7069

7170
#' @title Checks if the R session is running within RStudio

man/install.python.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/is.x64.Rd

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)