quickr semantics: types, shapes, and differences from R
What to expect | Types | Products | Reassignment cannot narrow a type | Shapes | Matrix multiplication and linear algebra | Differences from R | Integer sum() can overflow | Floating sum() can differ by platform | Integer arithmetic can overflow | Zero divisors in %% and %/% | Floating %/% can differ at quotient boundaries | Empty min() and max() inputs are rejected | Whole-valued real exponents can differ for negative bases | No NA | No partial recycling | Empty arrays follow the same shape rules | Zero-sized linear-algebra products | drop() requires a fixed result rank | A variable's type cannot change | Empty sapply() results | Complex values are elementwise-only | solve() uses LAPACK's singularity result | runif() bound differences | Console output | Return allocation and observable effects | Scalar transpose | Length-one diag() arguments | Subscript bounds are only partially checked | Serial loop variables | Parallel loops require independent iterations | Local variables and closures | ifelse() | Logical operators require logical operands | Local closures accept only pure argument expressions | Deprecation warnings are not reproduced