Description Usage Arguments Details Value Examples
Instanciate a .Net object from its type name.
1 |
typeName |
The .Net full name type |
... |
.Net Constructor arguments. |
The typeName
should respect the full type name convention: Namespace.TypeName
Ellipses ...
has to keep the .net constructor arguments order, the named arguments are not supported yet.
If there is many constructors defined for the given .Net type, a score selection is computed from your arguments orders and types to choose the best one.
We consider as a higher priority single value compare to collection of values.
Returns a converted .Net instance if a converter is defined, an external pointer otherwise.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
library(sharper)
package_folder <- path.package("sharper")
netLoadAssembly(file.path(package_folder, "tests", "RDotNet.AssemblyTest.dll"))
x <- netNew("RDotNet.AssemblyTest.OneCtorData", 21L)
netCall(x, "ToString")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.