The issue is that wxHtmlLinkInfo is not a dynamic class,
i.e. we cannot ask the C++ instance about its class information.
This is an implementation choice for wxWidgets and leaves us
without the ability to dynamically determine the class of
the object and so find its methods implicitly via $.
Rather, you have to call the methods explicitly, e.g.
wxHtmlLinkInfo_GetHref(info)
or
as(info, "wxHtmlLinkInfo")$GetHref().
If you are going to make repeated use of the object,
then doing the coercion and assigning the result
to a variable in R and then calling the methods
may be convenient, e.g.
info = as(info, "wxHtmlLinkInfo")
info$GetHref()