home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / aus / stats / s / 929 < prev    next >
Encoding:
Text File  |  1993-01-25  |  2.7 KB  |  63 lines

  1. Newsgroups: aus.stats.s
  2. Path: sparky!uunet!munnari.oz.au!metro!dmssyd.syd.dms.CSIRO.AU!news
  3. From: nobody@kodak.com (Tony Scalise)
  4. Subject: directories
  5. Message-ID: <9301251941.AA22870@alnitak.Kodak.COM>
  6. X-Gateway: dmssyd.syd.dms.CSIRO.AU
  7. Lines:  50
  8. Sender: daemon@syd.dms.CSIRO.AU
  9. Reply-To: nobody@kodak.com
  10. Organization: CSIRO Div. Maths & Stats, CSIRO Div. Applied Physics
  11. Date: Tue, 26 Jan 1993 01:00:22 GMT
  12.  
  13. To all,
  14. I would like to thank everyone for their insightful responses to the directory
  15. question. It's people like you that make this news group a great resource.
  16.  
  17. To summarize: Most everyone creates a .Data directories off the unix directories
  18. This seems to fit with the Splus strategy to have only Splus objects in .Data
  19. directories. As for changing directories, most people leave splus and start
  20. up again in the directory they want to change to. Another method is to use the
  21. attach function to get access to the data in another directory. If you attach
  22. with pos=1 then any objects that you write will be placed in that directory. I
  23. have a cd("directory path") function that will check the search list to see if
  24. the "directory path" is their. If it is not found then the "directory path" is 
  25. simply placed in the first position of the search list. If it is found it is 
  26. deleted from it's current position before being placed in the first position. It also changes the prompt in splus to reflect what directory you are currently in. If any one is interested in this function let me know and I will be happy to 
  27. give them a copy. I will conclude with Bill Dunlap's reply from statistical
  28. Sciences, Inc. Again thanks for all the replies.
  29.  
  30. Tony Scalise
  31. scalise@alnitak.kodak.com
  32. Eastman Kodak Co.
  33. Rochester, New York
  34.  
  35. Bill's Reply:
  36.  
  37. Our model of the .Data directory is that it contains only objects
  38. that Splus knows about.  Mainly these are the binary data files,
  39. but Splus uses directories named .Help and .Cat.Help for help
  40. files, a file called .Audit to contain a history of Splus commands
  41. and other things, and the soon to be released Splus 3.1 for DOS
  42. has some other special files there.
  43.  
  44. If you add things to .Data you will confuse Splus.  We recommend
  45. making a new ordinary directory and a .Data subdirectory of it
  46. to hold a new project's data.
  47.  
  48. > I try moving to a different
  49. > directory by !cd directory_name but after when I try !pwd the directory hasn't
  50. > been changed.
  51.  
  52. Every time you execute a unix shell command, it spawns a new subshell,
  53. and the subshell dies at the end of the command.  When the subshell
  54. starts using a new directory it does not cause its parent shell to do
  55. so.
  56.  
  57. You should either leave Splus, cd to the new directory, and start
  58. it up again, or attach("newdirectory/.Data") to get access to the
  59. data in the new directory's .Data subdirectory.
  60.  
  61.     Bill
  62.  
  63.