> dataSets
$`PTU_Mendes_2014__Human_PeripheralVenousBlood_Plasma_100 [mg] PTU_po_fasted`
DataSet:
Name: PTU_Mendes_2014__Human_PeripheralVenousBlood_Plasma_100 [mg] PTU_po_fasted
X dimension:
Error in rClr::clrCallStatic(typename, methodName, self$ref) :
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Method: OSPSuite.Core.Domain.UnitSystem.Unit get_DisplayUnit()
Stack trace:
at OSPSuite.Core.Domain.Data.DataColumn.get_DisplayUnit()
at OSPSuite.Core.Domain.WithDisplayUnitExtensions.DisplayUnitName(IWithDisplayUnit withDisplayUnit)
8.
rClr::clrCallStatic(typename, methodName, self$ref) at dot-net-wrapper.R#69
7.
private$wrapExtensionMethod(WITH_DISPLAY_UNIT_EXTENSION, "DisplayUnitName",
"displayUnit", value) at data-column.R#32
6.
(function (value)
{
if (missing(value)) {
return(private$wrapExtensionMethod(WITH_DISPLAY_UNIT_EXTENSION, ... at data-set.R#48
5.
(function (value)
{
if (missing(value)) {
return(private$.xColumn$displayUnit) ... at printable.R#40
4.
private$printLine("X unit", self$xUnit) at data-set.R#277
3.
.subset2(x, "print")(...)
2.
print.R6(x)
1.
(function (x, ...)
UseMethod("print"))(x)
I also have seen other use cases where the error in R is much less informative than the corresponding error in PK-Sim, so I assume some messages are not properly forwarded.
Trying to load the uploaded sheet with the configuration in PK-Sim shows an error that no unit for Measurement is defined:
Doing the same in R does not produce an error:
The imported data set is corrupt:
I also have seen other use cases where the error in R is much less informative than the corresponding error in PK-Sim, so I assume some messages are not properly forwarded.