Wikipedia states that R is "multi-paradigm: array, object-oriented, imperative, functional, procedural, reflective and also dynamic. But what about its type safety? Please explain the different aspects/kinds of possible type safety in R with examples, e.g.
- Do we get unchecked run-time type errors?
- Are operations or function calls which attempt to disregard data types rejected?
- Is there a well-defined error or exceptional behavior (as opposed to an undefined behavior) as soon as a type-matching failure happens?
- Are data objects fixed and invariable typed?
- Can the type system be evaded?
- Does it have a complex, fine-grained type system with compound types and does each each object have a well-defined type that will prohibit illegal values and operations?
- Support for implicit type conversion (this has been shown by some answers already, thank you).
These questions are derived from Wikipedia (http://en.wikipedia.org/wiki/Strong_typing) as strong/weakly typed is too fuzzy to ask for (thanks delnan for clarifications here).