Accessing object from another package by variable
This article is originally published at https://logfc.wordpress.com
Say the package name is stored in variable x
and the name of the object you would like to access from that package (without loading the package) is stored in y
. Of course the ::
will not work, but fortunately it is just a wrapper around the function getExportedValue
, so the following will work:
getExportedValue(x, y)
Thanks for visiting r-craft.org
This article is originally published at https://logfc.wordpress.com
Please visit source website for post related comments.