Skip to contents

Loading and managing assemblies

loadAssembly()
Loads a .NET assembly.
getLoadedAssemblies()
List the names of loaded assemblies
getTypesInAssembly()
Get a list of .NET type names exported by an assembly
isAssemblyLoaded()
Is the assembly loaded?

Creating objects

NetObject
NetObject
newObjectFromName()
Create a new NetObject R6 object given the type name.
newPointerFromName()
Create a new external pointer to a .NET object given the type name.
getConstructors()
List the public constructors of a CLR Type
castToRObject()
Create if possible an object of the R6 class `NetObject`

Working with static members

callStatic()
Call a static method on a .NET type
getStatic()
Gets the value of a static field or property of a class
getStaticFields()
Gets the static fields for a type
getStaticMemberSignature()
Gets the signature of a static member of a type
getStaticMembers()
Gets the static members for a type
getStaticMethods()
Gets the static methods for a type
getStaticProperties()
Gets the static properties for a type
setStatic()
Sets the value of a field or property of an object or class

Working with enums

getEnumNames()
Gets the names of a .NET Enum value type

Diagnostics

toStringNET()
Calls the ToString method of an object
getSexpType()
Get the type code for a SEXP
getType()
Gets the pointer to the `System.RuntimeType` of a `NetObject` object or a .NET type name.
rToDotNetType()
Gets the type of a .NET object resulting from converting an R object
inspectArgs()
Peek into the structure of R objects 'as seen from C code'
printTraceback()
Prints the last .NET exception

Miscelaneous

setConvertAdvancedTypes()
Turn on/off the conversion of advanced data types with R.NET
getRSharpSetting()
getRSharpSetting
rSharpSettingNames
Names of the settings stored in rSharpEnv Can be used with `getRSharpSetting()`

Internal functions

.clrTypeNameExtPtr()
Gets the type name of an object
.getCurrentConvertedObject()
System function to get a direct access to an object
.mkClrObjRef()
Create if possible an S4 `cobjRef` object.