Skip to content
Prev 24527 / 63424 Next

getConnection is not found in R depending on the Linux flavour (RedHat or Debian) - dyn.load problems

getConnection is not part of the API, so it is not intended to be visible 
to your code.  The code reads

/* internal, not the same as R function getConnection */
attribute_hidden
Rconnection getConnection(int n)

and 'internal' and 'attribute_hidden' should have been enough of a clue! 
On many OSes it is noticeably more efficient not to export unneeded entry 
points from DLLs, so we do not do so where the OS supplies (simple) 
facilities to do so.

There are severe warnings in 'Writing R Extensions' about making use of 
entry points not in the API.

There are medium-term plans to change the internal structure of 
connections to make use of features not in R when they were designed (weak 
references and finalizers), so this will definitely remain non-API.
On Fri, 6 Apr 2007, Simon Penel wrote:

            
[...]