nuget server logo nuget api documents
↑

API Docs / REnv / PackageLoader2

PackageLoader2

Full name SMRUCC.Rsharp.Development.Package.File.PackageLoader2 Assembly REnv Members 12

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:

  1. hotload function handling the source project folder, all of the R source is the original text file
  2. loadpackage function handling the package installed folder, all of the R source is serialized as binary data file
  3. the directory folder structure is also different between the source project folder and the package library folder

01 Syntax

SMRUCC.Rsharp.Development.Package.File.PackageLoader2

02 Methods

NameOverloadsSummary
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

NameOverloadsSummary
RsharpHelp 2 "r-sharp-help"
RpkgIndexJSON 1

04 Members

method CheckPackage #
CheckPackage(String)

检查程序包的指纹是否和checksum中的结果相匹配

Parameters
NameTypeDescription
libDirString

-

method GetPackageDirectory #
GetPackageDirectory(Options, String)

get the root dir of the target R#(nuget/zip) package.

Parameters
NameTypeDescription
optOptions

-

packageNameString

the R# package name

method Hotload overload 2 #
Hotload(String, GlobalEnvironment, DESCRIPTION)

程序包调试,测试用api

在启动的时候对未进行编译的程序包进行热加载

Parameters
NameTypeDescription
projDirString

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.

envGlobalEnvironment

-

method Hotload #
Hotload(IFileSystemEnvironment, GlobalEnvironment, DESCRIPTION)

程序包调试,测试用api

在启动的时候对未进行编译的程序包进行热加载

Parameters
NameTypeDescription
projDirIFileSystemEnvironment

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.

envGlobalEnvironment

-

method LoadPackage #
LoadPackage(IFileSystemEnvironment, String, Boolean, GlobalEnvironment)

attach installed package

Parameters
NameTypeDescription
dirIFileSystemEnvironment

the local physical filesystem

envString

-

quietlyBoolean

options for mute the package loader banner display

method loadDependency #

这个函数会加载通过imports...from...语句进行显示加载的依赖程序集

Parameters
NameTypeDescription
envPackageEnvironment

-

pkgPackageNamespace

-

method callOnLoad #
callOnLoad(PackageEnvironment, Boolean, PackageNamespace)

call package initilization loader function

Parameters
NameTypeDescription
envPackageEnvironment

-

pkgBoolean

-

field RsharpHelp #
RsharpHelp

"r-sharp-help"

field RsharpHelp overload 2 #
RsharpHelp
field RpkgIndexJSON #
RpkgIndexJSON
method GetPackageName #
GetPackageName(String)
method GetPackageIndex #
GetPackageIndex(Stream)