Load R package folder
20221122
just load the R source file at here, the package module inside the .NET dll file its loading procedure is lazy, load a specific dll file until the imports expression is evaluated in the R script file
Load R package folder
20221122
just load the R source file at here, the package module inside the .NET dll file its loading procedure is lazy, load a specific dll file until the imports expression is evaluated in the R script file
00 Remarks
the package loading procedure between the PackageLoader2.Hotload() and PackageLoader2.LoadPackage() is similar to each other, but have some significatent difference between each other:
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| CheckPackage | 1 | 检查程序包的指纹是否和checksum中的结果相匹配 |
| GetPackageDirectory | 1 | get the root dir of the target R#(nuget/zip) package. |
| Hotload | 2 | 程序包调试,测试用api 在启动的时候对未进行编译的程序包进行热加载 |
| LoadPackage | 1 | attach installed package |
| loadDependency | 1 | 这个函数会加载通过imports...from...语句进行显示加载的依赖程序集 |
| callOnLoad | 1 | call package initilization loader function |
| GetPackageName | 1 | |
| GetPackageIndex | 1 |
03 Fields
| Name | Overloads | Summary |
|---|---|---|
| RsharpHelp | 2 | "r-sharp-help" |
| RpkgIndexJSON | 1 |
04 Members
String)检查程序包的指纹是否和checksum中的结果相匹配
| Name | Type | Description |
|---|---|---|
libDir | String | - |
String)get the root dir of the target R#(nuget/zip) package.
| Name | Type | Description |
|---|---|---|
opt | Options | - |
packageName | String | the R# package name |
程序包调试,测试用api
在启动的时候对未进行编译的程序包进行热加载
| Name | Type | Description |
|---|---|---|
projDir | String | the package source project directory, which is should be un-build... for load the package directory which is installed into the R library folder, use the method PackageLoader2.LoadPackage() instead. |
env | GlobalEnvironment | - |
程序包调试,测试用api
在启动的时候对未进行编译的程序包进行热加载
| Name | Type | Description |
|---|---|---|
projDir | IFileSystemEnvironment | the package source project directory, which is should be un-build... for load the package directory which is installed into the R library folder, use the method PackageLoader2.LoadPackage() instead. |
env | GlobalEnvironment | - |
attach installed package
| Name | Type | Description |
|---|---|---|
dir | IFileSystemEnvironment | the local physical filesystem |
env | String | - |
quietly | Boolean | options for mute the package loader banner display |
这个函数会加载通过imports...from...语句进行显示加载的依赖程序集
| Name | Type | Description |
|---|---|---|
env | PackageEnvironment | - |
pkg | PackageNamespace | - |
call package initilization loader function
| Name | Type | Description |
|---|---|---|
env | PackageEnvironment | - |
pkg | Boolean | - |
"r-sharp-help"
String)Stream)