resolveIdToValue tries to resolve the value using the data it has been given.
If the environment is provided the approximation is more precise, as we can
track aliases in the environment.
Otherwise, the graph is used to try and resolve the nodes value.
If neither is provided the value cannot be resolved.
This function is also used by the Resolve Value Query and the Dependency Query
to resolve values. For e.g. in the Dependency Query it is used to resolve calls
like lapply(c("a", "b", "c"), library, character.only = TRUE)
Evaluates the value of a node in the set domain.
resolveIdToValue tries to resolve the value using the data it has been given. If the environment is provided the approximation is more precise, as we can track aliases in the environment. Otherwise, the graph is used to try and resolve the nodes value. If neither is provided the value cannot be resolved.
This function is also used by the Resolve Value Query and the Dependency Query to resolve values. For e.g. in the Dependency Query it is used to resolve calls like
lapply(c("a", "b", "c"), library, character.only = TRUE)