Hi,
I'm using Splus 6 Professional (Release 2) on Windows 2000 and noticed that
the sourceChapter() function seems to leave the sourced chapter stuck at
position 1 in the search path.
I'm not sure if this is a bug, or there is something I need to do. The
documentation for sourceChapter indicates that the chapter should be
reattached to the original position - this doesn't seem to be happening.
In the following example the chapter "scripts" is attached at position 2.
The only way to fix this seems to be to exit and restart Splus.
> attach("d:\\g1_datasets\\geog2009\\windows scripts",name="scripts")
> search()
[1] "C:\\Program Files\\Insightful\\splus6\\users\\nissenk"
[2] "scripts"
[3] "splus"
[4] "stat"
[5] "data"
[6] "trellis"
[7] "nlme3"
[8] "menu"
[9] "sgui"
[10] "winspj"
[11] "main"
> sourceChapter("scripts")
Attaching d:\g1_datasets\geog2009\windows scripts to position 1
Sourcing d:\g1_datasets\geog2009\windows scripts\.First.home.ssc
Sourcing d:\g1_datasets\geog2009\windows scripts\.First.ssc
Sourcing d:\g1_datasets\geog2009\windows scripts\aspect.usr.ssc
<snip>
Sourcing d:\g1_datasets\geog2009\windows scripts\zz.button.hide.ssc
Sourcing d:\g1_datasets\geog2009\windows scripts\zz.button.verts.ssc
Sourcing d:\g1_datasets\geog2009\windows scripts\zz.flash.button.ssc
Detaching d:\g1_datasets\geog2009\windows scripts
> search()
[1] "scripts"
[2] "C:\\Program Files\\Insightful\\splus6\\users\\nissenk"
[3] "splus"
[4] "stat"
[5] "data"
[6] "trellis"
[7] "nlme3"
[8] "menu"
[9] "sgui"
[10] "winspj"
[11] "main"
>
-------------------------------------------------------------------------------------------------------------------------------
Karl Nissen
Programmer/System administrator Phone: (+61 2)
6125 4613
School of Resources, Environment and Society Fax: (+61 2)
6125 3770
The Australian National University e-mail:
karl.nissen@anu.edu.au
-------------------------------------------------------------------------------------------------------------------------------
|