An internal development tools
devtools
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| translate_to_rlang | 1 | |
| FNV1aHash | 1 | FNV-1a non-cryptographic hash function FNV hashes are designed to be fast while maintaining a low collision rate. |
| flash_load | 1 | Load R script in directory Load all of the R script in a given working directory, by default is load all script in current directory. |
| fetchProfileData | 1 | get performance profile data |
| gc | 1 | Garbage Collection A call of gc causes a garbage collection to take place. |
| getDllPath | 1 | get library dll file path |
| raiseException | 1 | this function will throw a .NET exception for run exception handler demo test |
| raiseThreadException | 1 | this function will throw a .NET exception on another thread for run exception handler demo test |
| read_ini | 1 | Read ini profile file data as list |
03 Members
| Name | Type | Description |
|---|---|---|
code | Expression | the expression code that will be run inside R language, the expression type could be: |
env | Environment | - |
Object, Environment)FNV-1a non-cryptographic hash function
FNV hashes are designed to be fast while maintaining a low collision rate. The FNV speed allows one to quickly hash lots of data while maintaining a reasonable collision rate. The high dispersion of the FNV hashes makes them well suited for hashing nearly identical strings such as URLs, hostnames, filenames, text, IP addresses, etc.
| Name | Type | Description |
|---|---|---|
[set] | Object | - |
env | Environment | - |
Returns the hash as a positive integer
Load R script in directory
Load all of the R script in a given working directory, by default is load all script in current directory.
| Name | Type | Description |
|---|---|---|
dir | String | The script source directory, by default is current workspace. |
quietly | Boolean | silent mode? default is verbose mode(show the package loading banner information) |
get performance profile data
| Name | Type | Description |
|---|---|---|
env | Environment | - |
Garbage Collection
A call of gc causes a garbage collection to take place. gcinfo sets a flag so that automatic collection is either silent (verbose = FALSE) or prints memory usage statistics (verbose = TRUE).
A call of gc causes a garbage collection to take place. This will also take place automatically without user intervention, and the primary purpose of calling gc is for the report on memory usage. For an accurate report full = TRUE should be used. It can be useful To Call gc after a large Object has been removed, As this may prompt R To Return memory To the operating system. R allocates space For vectors In multiples Of 8 bytes: hence the report Of "Vcells", a relic Of an earlier allocator (that used a vector heap). When gcinfo(TRUE) Is in force, messages are sent to the message connection at each garbage collection of the form:
Garbage collection 12 = 10+0+2 (level 0) ...
6.4 Mbytes of cons cells used (58%)
2.0 Mbytes of vectors used (32%)
Here the last two lines give the current memory usage rounded up To the Next 0.1Mb And As a percentage Of the current trigger value. The first line gives a breakdown Of the number Of garbage collections at various levels (For an explanation see the 'R Internals’ manual).
Object, Environment)get library dll file path
| Name | Type | Description |
|---|---|---|
files | Object | - |
env | Environment | - |
String)this function will throw a .NET exception for run exception handler demo test
| Name | Type | Description |
|---|---|---|
message | String | - |
String)this function will throw a .NET exception on another thread for run exception handler demo test
| Name | Type | Description |
|---|---|---|
message | String | - |
String, String)Read ini profile file data as list
| Name | Type | Description |
|---|---|---|
file | String | - |
section | String | - |