typed
is an experimental R library, which introduces typed variables
in R.
You can install the released version of typed from from GitHub with:
# install.packages("devtools")
devtools::install_github("krzjoa/typed")
library(typed)
#>
#> Attaching package: 'typed'
#> The following object is masked from 'package:base':
#>
#> <-
x <- 10
x <- 2.5
print(x)
#> [1] 2.5
locked(z) <- 2
z <- 5
#> Error in do.call(.Primitive("<-"), list(var.name, value), envir = ref.env): nie można zmienić wartości zablokowanego połączenia dla 'z'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.