From pd@|gd @end|ng |rom gm@||@com  Sun Jan  8 15:23:08 2023
From: pd@|gd @end|ng |rom gm@||@com (Peter Dalgaard)
Date: Sun, 8 Jan 2023 15:23:08 +0100
Subject: [Rd] Looking for R for Windows (rversion: 4.2.2) in
 base/old/%rversion%/R-%rversion%-win.exe
In-Reply-To: <SA1PR14MB464299BE2DB514FB72367D069CF99@SA1PR14MB4642.namprd14.prod.outlook.com>
References: <SA1PR14MB464299BE2DB514FB72367D069CF99@SA1PR14MB4642.namprd14.prod.outlook.com>
Message-ID: <F8C5E820-C561-4311-AAB1-5C89E7816C6E@gmail.com>

Dunno what happened there, and Win binaries are generally "not my table". However, 4.2.2 is not old, so possibly should not be on that list at all. It is the current version, so can be obtained via the "here" link at the top of the page (i.e. https://cran.r-project.org/bin/windows/base/)

-pd

> On 8 Jan 2023, at 06:12 , Andre Mikulec <andre_mikulec at hotmail.com> wrote:
> 
> Peter Dalgaard, R-devel team, et al.,
> 
> Hi, my name is Andre Mikulec.
> 
> I am an `common` committer to Postgres PL/R . . .
> https://github.com/postgres-plr/plr/commits?author=AndreMikulec
> 
> https://github.com/postgres-plr/plr
> `PL/R - PostgreSQL support for R as a procedural language (PL)`
> 
> However, now and different from the past,
> the `windows/base/old` R 4.2.2 download location URL link now, redirects to the wrong `R 4.2.1` location.
> 
> Historically,
> Previous and Current(still called `old`) Windows versions of R
> have been stored here (below) and the current(old) version of R would have been 4.2.2. and would have pointed to R 4.2.2.
> 
> https://cran.r-project.org/bin/windows/base/old/
> 
> ```
> In this directory (and its URL redirect (->)):
> R 4.2.2 (October, 2022) -> https://cran.r-project.org/bin/windows/base/old/4.2.1 (NEED 4.2.2)
> R 4.2.1 (June, 2022) -> https://cran.r-project.org/bin/windows/base/old/4.2.1/
> ```
> 
> So, something has changed `R 4.2.2 (October, 2022)` now redirects to `base/old/4.2.1`.
> 
> Now and in the past, Appveyor builds of PL/R rely a specific version of R in an exact location:
> 
> https://github.com/postgres-plr/plr/blob/4ac054e61c62f72a9cd3a38f66476d037b3e27a5/appveyor.yml#L25
> ```
> - pg: REL_15_0
>    PlatformToolset: v141
>    configuration: Release
>    APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
>    rversion: 4.2.1
> ```
> 
> Notice (above and) below the variable `rversion: 4.2.1`
> and the hard coded location `base/old/%rversion%/R-%rversion%-win.exe`.
> 
> https://github.com/postgres-plr/plr/blob/4ac054e61c62f72a9cd3a38f66476d037b3e27a5/appveyor.yml#L108
> ```
> - if not exist R-%rversion%-win.exe appveyor downloadfile https://cran.r-project.org/bin/windows/base/old/%rversion%/R-%rversion%-win.exe
> ```
> 
> E.g. the most recent PL/R build (a month ago) using R 4.2.1
> `PL/R - PostgreSQL support for R as a procedural language (PL)` build:
> 
> https://ci.appveyor.com/project/davecramer/plr-daun5/build/job/7lqs9pkgartjhxwt?fullLog=true#L15
> ```
> Cache 'R-4.2.1-win.exe' - Restored
> Running Install scripts
> if not exist R-%rversion%-win.exe appveyor downloadfile https://cran.r-project.org/bin/windows/base/old/%rversion%/R-%rversion%-win.exe
> R-%rversion%-win.exe /VERYSILENT
> ```
> 
> Now, where may One find a `specific version of R in an exact location`?
> 
> Please help.
> 
> Thanks,
> Andre Mikulec
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



[Rd] Looking for R for Windows (rversion: 4.2.2) in base/old/%rversion%/R-%rversion%-win.exe
Peter Dalgaard