Moved the pre-install in r.json to the architecture specific part (#795)

* Apache httpd version upgrade to 2.4.20

* Update pre-install in r.json

The pre-install in the r bucket is now architecture specific and
depends on the architecture the user requested, no longer on the
architecture of the user's machine.
This commit is contained in:
Cyianor 2016-04-17 02:33:30 +02:00 committed by Luke Sampson
parent 2936fca5f1
commit 9be43cd562

17
r.json
View File

@ -2,10 +2,19 @@
"homepage": "https://www.r-project.org", "homepage": "https://www.r-project.org",
"version": "3.2.4", "version": "3.2.4",
"license": "GPL2", "license": "GPL2",
"url": "https://cran.rstudio.com/bin/windows/base/R-3.2.4revised-win.exe", "architecture": {
"hash": "E0BCD1D3552670B6E7604AF54AC0B75E8538694D8FC5B38086BF8A81FDB6EF40", "64bit": {
"url": "https://cran.rstudio.com/bin/windows/base/R-3.2.4revised-win.exe",
"hash": "E0BCD1D3552670B6E7604AF54AC0B75E8538694D8FC5B38086BF8A81FDB6EF40",
"pre_install": "copy-item -recurse $dir\\bin\\x64 $dir\\bin\\curr_arch"
},
"32bit": {
"url": "https://cran.rstudio.com/bin/windows/base/R-3.2.4revised-win.exe",
"hash": "E0BCD1D3552670B6E7604AF54AC0B75E8538694D8FC5B38086BF8A81FDB6EF40",
"pre_install": "copy-item -recurse $dir\\bin\\i386 $dir\\bin\\curr_arch"
}
},
"innosetup": true, "innosetup": true,
"pre_install": "if ([intptr]::size -eq 8) { $r_arch = \"x64\" } else { $r_arch = \"i386\" }; copy-item -recurse $dir\\bin\\$r_arch $dir\\bin\\curr_arch;",
"bin": [ "bin": [
"bin\\curr_arch\\r.exe", "bin\\curr_arch\\r.exe",
"bin\\curr_arch\\rterm.exe", "bin\\curr_arch\\rterm.exe",
@ -19,8 +28,6 @@ You can remove Powershell's 'r' command with:
... but this only affects your current session: if you'd like to remove it for all future sessions you need to add the command above to your Powershell profile. ... but this only affects your current session: if you'd like to remove it for all future sessions you need to add the command above to your Powershell profile.
Annoying, right?! You might want to check out Pshazz (scoop install pshazz)--this has a plugin to remove some crazy aliases from Powershell, as well as many other improvements. Annoying, right?! You might want to check out Pshazz (scoop install pshazz)--this has a plugin to remove some crazy aliases from Powershell, as well as many other improvements.
If you are on a 64-bit machine then R comes in a 32-bit and a 64-bit version. Currently scoop sets the shims depending on your machine's architecture.
", ",
"checkver": { "checkver": {
"url": "https://cran.rstudio.com/bin/windows/base/", "url": "https://cran.rstudio.com/bin/windows/base/",