I'm afraid that the only answer to your question is to upgrade to R6, where this functionality has been added.