Referencial transparency is a property of most programming languages, where the name of the variables does not affect the outcome.
Let's start with a simple example:
add1 <- function(variable) {
return(variable + 1)
}
add1(1)
Referencial transparency is a property of most programming languages, where the name of the variables does not affect the outcome.
Let's start with a simple example:
add1 <- function(variable) {
return(variable + 1)
}
add1(1)
# | |
# udev rule | |
# Mount USB drive to the media directory using the partition name as mount point | |
# | |
# Description: | |
# Created for Home Assistant OS, this rule mounts any USB drives | |
# into the Hassio media directory (/mnt/data/supervisor/media). | |
# When a USB drive is connected to the board, the rule creates one directory | |
# per partition under the media directory. The newly created partition is named | |
# as the partition name. If the partition does not have a name, then the following |
--- | |
title: "Demo inconsistency" | |
author: "" | |
date: "" | |
output: html_document | |
--- | |
```{r Chunk1} | |
Sys.sleep(5) | |
``` |
reprex::reprex({ | |
library(DelayedArray) | |
x <- DelayedArray(matrix(1L, nrow = 2, ncol = 1)) | |
colnames(x) <- "potato" | |
# wrong: | |
df <- as.data.frame(x, drop = TRUE) | |
colnames(df) | |
# workaround: |