From Mark.Bravington at csiro.au  Sun Jan  1 22:48:51 2006
From: Mark.Bravington at csiro.au (Mark.Bravington@csiro.au)
Date: Mon, 2 Jan 2006 08:48:51 +1100
Subject: [Rd] sealed namespaces and lockEnvironment
Message-ID: <D79013E40FEF254AAF0D72DFC94F274803D989@extas4-hba.tas.csiro.au>

Dear R-devel

I'm experimenting with easy-to-use ways for a package maintainer to modify a"live" package-- i.e. while it's loaded & in use. One difficulty is that packages with namespaces are usually sealed with 'lockEnvironment', which means you can't add/remove objects. After some effort, I've managed to bypass the sealing step, and the live-editing seems to be working pretty well.

However, there are reasons for sealing (e.g. in Luke Tierney's article in R-news 3/1). Which disasters am I really courting by not sealing the namespace?

NB 1: non-sealing only happens during development by the package maintainer, so some rough edges are tolerable.

and 2: the only alternative I can think of-- and it's less satisfactory anyway-- involves changing the namespace's parent environment using 'parent.env<-', which comes with even more dire warnings...

thanks

Mark Bravington



[Rd] sealed namespaces and lockEnvironment
Mark.Bravington@csiro.au