Turn on/off the conversion of advanced data types with R.NET
Source:R/utilities.R
setConvertAdvancedTypes.Rd
Turn on/off the conversion of advanced data types with R.NET. This will turn off the conversion of classes such as dictionaries into R lists, as these are not bidirectional and you may want to see and manipulate external pointers to dictionaries in some circumstances.
Examples
library(rSharp)
cTypename <- getRSharpSetting("testCasesTypeName")
callStatic(cTypename, "CreateStringDictionary")
#> $a
#> [1] "A"
#>
#> $b
#> [1] "B"
#>
setConvertAdvancedTypes(FALSE)
callStatic(cTypename, "CreateStringDictionary")
#>
#> ── <NetObject> ──
#>
#> Type: System.Collections.Generic.Dictionary`2[[System.String,
#> System.Private.CoreLib, Version=8.0.0.0, Culture=neutral,
#> PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib,
#> Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
#>
#> ── Available Methods
#> • `Add()`
#> • `Clear()`
#> • `ContainsKey()`
#> • `ContainsValue()`
#> • `EnsureCapacity()`
#> • `Equals()`
#> • `get_Comparer()`
#> • `get_Count()`
#> • `get_Item()`
#> • `get_Keys()`
#> • `get_Values()`
#> • `GetEnumerator()`
#> • `GetHashCode()`
#> • `GetObjectData()`
#> • `GetType()`
#> • `OnDeserialization()`
#> • `Remove()`
#> • `Remove()`
#> • `set_Item()`
#> • `ToString()`
#> • `TrimExcess()`
#> • `TrimExcess()`
#> • `TryAdd()`
#> • `TryGetValue()`
#>
#> ── Available Properties
#> • Comparer
#> • Count
#> • Item
#> • Keys
#> • Values