There was a question in R forum very long time back.. on how to protect R Script files from inadvertent editing by users. There is a way to do this from within R, atleast in Windows XP I have tried this and it certainly works , The method is very different from the OS based folder protection route, however making available such a method in the open forum would only kill the very spirit of R. But if someone is able to convince me the genuineness of his reasons to achieve such a purpose, I might decide to provide selective service to achieve the same. Regards Vijayan Padmanabhan [[alternative HTML version deleted]]
On Sun, Apr 10, 2011 at 8:18 PM, Vijayan Padmanabhan <padmanabhan.vijayan at gmail.com> wrote:> There was a question in R forum very long time back.. on how to protect R > Script files from inadvertent editing by users.The good way to do it is to include the following comment at the beginning: # This is a holy Script, please edit it not Regards, Kenn Konstabel> There is a way to do this ?from within R, atleast in Windows XP I have tried > this and it certainly works , The method ?is very different from the OS > based folder protection route, ?however making available such a method in > the open forum would only kill the very spirit of R. > But if someone is able to convince me the genuineness of his reasons to > achieve such a purpose, I might decide to provide selective service to > achieve the same. > > Regards > Vijayan Padmanabhan > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
On Mon, Apr 11, 2011 at 12:21 AM, Kenn Konstabel <lebatsnok at gmail.com> wrote:> On Sun, Apr 10, 2011 at 8:18 PM, Vijayan Padmanabhan > <padmanabhan.vijayan at gmail.com> wrote: >> There was a question in R forum very long time back.. on how to protect R >> Script files from inadvertent editing by users. > > The good way to do it is to include the following comment at the beginning: > > # This is a holy Script, please edit it notIf ever fate predestined a reply to be a fortunes candidate, surely this is the one. Josh> > Regards, > Kenn Konstabel
On Sun, Apr 10, 2011 at 10:48:19PM +0530, Vijayan Padmanabhan wrote:> There was a question in R forum very long time back.. on how to protect R > Script files from inadvertent editing by users. > There is a way to do this from within R, atleast in Windows XP I have tried > this and it certainly works ,A possible approach is to put the script into an extension package. This does not prevent the user to modify the script, but makes it almost impossible to change it inadvertently. Petr Savicky.
On Windows at least, you could set it as "read only". The user can save an edited copy of it but cannot modify the original script. Le 4/11/2011 09:36, Petr Savicky a ?crit :> On Sun, Apr 10, 2011 at 10:48:19PM +0530, Vijayan Padmanabhan wrote: >> There was a question in R forum very long time back.. on how to protect R >> Script files from inadvertent editing by users. >> There is a way to do this from within R, atleast in Windows XP I have tried >> this and it certainly works , > A possible approach is to put the script into an extension package. This > does not prevent the user to modify the script, but makes it almost > impossible to change it inadvertently. > > Petr Savicky. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Ivan CALANDRA PhD Student University of Hamburg Biozentrum Grindel und Zoologisches Museum Abt. S?ugetiere Martin-Luther-King-Platz 3 D-20146 Hamburg, GERMANY +49(0)40 42838 6231 ivan.calandra at uni-hamburg.de ********** http://www.for771.uni-bonn.de http://webapp5.rrz.uni-hamburg.de/mammals/eng/1525_8_1.php