When writing your own code that uses, for instance, the capi package, create a package of your own that uses capi -- do not work directly in the capi package. By doing this you can avoid unexpected name clashes.
capi