Wykres commitów

35 Commity (472c5cdc29da11d29c892f1492db19a0101ca692)

Autor SHA1 Wiadomość Data
YuviPanda a0fd8743b2 Remove mentions of MRAN 2023-06-11 12:56:53 +05:30
YuviPanda 3fb91c7f56 Try a slightly newer date 2023-06-09 23:44:54 +05:30
YuviPanda 0a756e72dd Try a slightly older snapshot date 2023-06-09 19:54:19 +05:30
YuviPanda 5572e37a7d Bump up the R snapshot date some more 2023-06-09 18:27:37 +05:30
YuviPanda 1224084345 Bump 3.6-rspm snapshot to after IRkernel was introduced 2023-06-09 17:56:42 +05:30
Min RK 8500d479a5
Stop using MRAN
- remove cutoff for picking RSPM, always use it
- remove now-redundant r4.0-mran test
- shift base R 3.6 snapshot date to after October 2017, when rspm snapshots seem to have started
- update docs to point to RSPM
2023-06-09 13:19:59 +02:00
Kacper Kowalik (Xarthisius) 7bf02d8101
Update the location of R packagemanager
Fixes #1272
2023-05-23 18:47:32 -05:00
Erik Sundell af076ca7de refactor readme files: in r tests 2022-10-16 11:03:48 +02:00
Erik Sundell 2c0b14c7da ci: refactor r tests, from 8 to 5 (~15 min saved) 2022-10-10 09:15:17 +02:00
YuviPanda 0b76608208 Bump default R version to 4.2
Been out for a bit now
2022-07-06 16:39:15 -07:00
Simon Li 813d28bfdb
Merge pull request #1115 from minrk/set-user-root
set USER root after each directive block
2022-01-25 14:55:11 +00:00
YuviPanda 9066d079d0 Use testthat, rather than tinytest
tinytest doesn't exist in older MRAN snapshots
2022-01-25 19:38:47 +05:30
Min RK 945c45299f set USER root after each directive block
matches expectations in the directive sequences

not strictly required after preassemble because we have no root steps between preassemble and assemble,
so we could remove the `last_user = "root"` there instead

includes regression test
2022-01-25 14:48:37 +01:00
YuviPanda f6737cfff5 Use a smaller R library in our tests
ggplot2 is a big library with a bunch of dependencies,
making our already slow R tests even slower. This PR
switches them to using the tinytest library, which has
no dependencies and is much smaller.
2022-01-25 18:58:58 +05:30
Simon Li 43525352a7
Merge pull request #1107 from yuvipanda/new-r
Bump default R version to 4.1
2022-01-08 14:44:37 +00:00
YuviPanda 54636c6ecf Bump default R version to 4.1
3.6 is almost 4 years old now.
2022-01-05 22:32:07 +05:30
YuviPanda 0b76e9ea44 Always install IRKernel as a binary package
And add another R test for R4.0 + rspm
2022-01-05 00:12:24 +05:30
YuviPanda ffbace3b38 Check for MRAN differently 2022-01-04 21:50:36 +05:30
YuviPanda d75c0079ad Test that older r snapshots get MRAN 2022-01-04 19:17:06 +05:30
YuviPanda fd6314d07d Solidify logic for picking rspm vs mran
- MRAN doesn't seem to have R 4.1 specific snapshots, so let's
  default to RSPM for anything 4.1+.
- Otherwise, snapshot dates in 2022 will result in using rspm
2022-01-04 18:30:39 +05:30
YuviPanda 054b602b13 Add test for r3.6 2021-12-20 18:24:15 +05:30
YuviPanda 1ed05b59c6 Install devtools, shiny & irkernel from a pin
We were doing this from an old MRAN snapshot. I moved the pin
a little ahead, so IRKernel can also be installed from CRAN
instead of from GitHub. R <= 4.0 gets the old version, and anything
newer gets a more recent version of devtools. This gives us
fast installs for IRkernel with binary packages.

Also add a R 4.0 and R 4.1 test
2021-12-17 15:52:27 +05:30
YuviPanda 476a25998b Get binary R packages from packagemanager.rstudio.com
packagemanager.rstudio.com is a CRAN mirror provided
by rstudio, with *binary packages* prebuilt for many Linux
Distributions! https://www.rstudio.com/blog/announcing-public-package-manager/
has more excellent detail. It cuts down install times for R packages
by almost 90% in some cases!

Like MRAN (which we use now), they also provide a daily snapshot
of CRAN at that date
(https://docs.rstudio.com/rspm/news/#rstudio-package-manager-2021090).
The URL for CRAN for a particular date can be fetched via an API
call. We call that API, and if there is no snapshot for that date
(anything before Oct 2017), we fall back on to MRAN. Adds a test
to test this fallback.

One possible issue about changing existing binder repos to use binary
builds rather than source builds is that the binary builds sometimes
require you have an apt package installed, and will fail if it is
not. We had to install the zmq library apt package for example -
source installs compile zmq from source, which is where the speedup
comes from. But unlike python wheels or conda packages, these binary
builds are not self-contained - they are linked to apt packages from
the specific distros. So some repos that worked before might fail now.
We can choose a more recent cut-off date to prevent this from happening.
2021-12-17 14:50:46 +05:30
YuviPanda e5e00bd1bf Clarify what version of R we are testing for 2021-12-16 15:39:28 +05:30
YuviPanda 0ba4c6851d Fix R syntax error 2021-12-16 14:25:07 +05:30
YuviPanda 730e622e3f Support R 4.1 2021-12-16 12:16:52 +05:30
Min RK dd3fa631dd support R 4 2020-09-14 11:55:52 +02:00
Tim Head f5a7711af5 Update snapshot date for simple R test 2020-07-30 16:37:29 +02:00
Bastian Greshake Tzovaras 1f5469feb5
use getwd() to find path instead of "." 2018-09-23 22:15:43 +03:00
Bastian Greshake Tzovaras 49b393e9a2
chmod x verify DESCRIPTION 2018-09-23 01:06:34 +03:00
Bastian Greshake Tzovaras 4a1b504dd2 add description test to this repo 2018-09-20 16:11:11 +03:00
Chris Holdgraf decff2e7c7 willingc comment on r readme 2018-02-06 11:19:40 -08:00
Chris Holdgraf 2a03420f35 improving readme 2018-02-06 10:54:44 -08:00
Chris Holdgraf 0e2fec2302 adding R README file 2018-02-06 10:48:05 -08:00
yuvipanda e2099dbc97 Add basic R + IRKernel + RStudio support
This sets up R + RStudio + IRKernel for a repository that contains:

 1. A `runtime.txt` file with the text:

	r-<year>-<month>-<date>

	Where 'year', 'month' and 'date' refer to a specific
	date snapshot of https://mran.microsoft.com/timemachine
	from which libraries are to be installed.

 2. An optional `install.R` file that will be executed at build time,
	and can be used for installing packages from both MRAN and GitHub.

It currently sets up R from the ubuntu repository being used. This
is unideal, and we should investigate other solutions!

Fixes #24
2018-02-02 09:25:19 -08:00