write_runtime: Write runtime.txt

View source: R/write_runtime.R

write_runtimeR Documentation

Write runtime.txt

Description

This function writes the language (in this case R) and a date from which packages will be downloaded from MRAN. The file is written to a hidden folder called '.binder/'.

Usage

write_runtime(
  path = ".",
  version = NULL,
  r_date = lubridate::ymd(lubridate::today())
)

Arguments

path

Path to project

version

Version of R to lock down.

r_date

Date you need R to lock down to. By default it picks the most recent date a file was touched in this project but you can override this by specifying this explicitly. Date must be in ISO 8601 format, e.g. 2019-06-27


karthik/holepunch documentation built on Feb. 20, 2023, 5:21 a.m.