BioConductor
TypeInfo 1.46.0
Optional Type Specification Prototype
A prototype for a mechanism for specifying the types of parameters and the return value for an R function. This is meta-information that can be used to generate stubs for servers and various interfaces to these functions. Additionally, the arguments in a call to a typed function can be validated using the type specifications. We allow types to be specified as either i) by class name using either inheritance - is(x, className), or strict instance of - class(x) %in% className, or ii) a dynamic test given as an R expression which is evaluated at run-time. More precise information and interesting tests can be done via ii), but it is harder to use this information as meta-data as it requires more effort to interpret it and it is of course run-time information. It is typically more meaningful.
Installation
Maven
This package can be included as a dependency from a Java or Scala project by including
the following your project's pom.xml
file.
Read more
about embedding Renjin in JVM-based projects.
<dependencies> <dependency> <groupId>org.renjin.bioconductor</groupId> <artifactId>TypeInfo</artifactId> <version>1.46.0-b1</version> </dependency> </dependencies> <repositories> <repository> <id>bedatadriven</id> <name>bedatadriven public repo</name> <url>https://nexus.bedatadriven.com/content/groups/public/</url> </repository> </repositories>
Renjin CLI
If you're using Renjin from the command line, you load this library by invoking:
library('org.renjin.bioconductor:TypeInfo')
Test Results
This package was last tested against Renjin 0.9.2644 on Jun 1, 2018.
- DynamicTypeTest-class-examples
- IndependentTypeSpecification-class-examples
- IndependentTypeSpecification-examples
- NamedTypeTest-class-examples
- ReturnTypeSpecification-examples
- SimultaneousTypeSpecification-examples
- TypedSignature-examples
- checkArgs-examples
- copyEnv
- copySubstitute
- hasParameterType-examples
- rewriteTypeCheck-examples
- showTypeInfo-examples