clrLoadAssembly: Loads a Common Language assembly.

Description Usage Arguments See Also Examples

Description

Loads an assembly. Note that this is loaded in the single application domain that is created by rClr, not a separate application domain.

Usage

1

Arguments

name

a character vector of length one. It can be the full file name of the assembly to load, or a fully qualified assembly name, or as a last resort a partial name.

See Also

.C which this function wraps

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
library(rClr)
clrGetLoadedAssemblies()
f <- file.path('SomeDirectory', 'YourDotNetBinaryFile.dll')
f <- path.expand(f)
stopifnot( file.exists(f) )
clrLoadAssembly(f)
# Load an assembly from the global assembly cache (GAC)
clrLoadAssembly("System.Windows.Presentation, 
  Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")
# The use of partial assembly names is discouraged; nevertheless it is supported
clrLoadAssembly("System.Web.Services")
clrGetLoadedAssemblies()

## End(Not run)

jmp75/rClr documentation built on June 11, 2019, 6:45 p.m.