Installation Notes for SPLUS or R Functions in Windows systems Jim Ramsay, McGill University 24 November 2005 These notes provide installation instructions for the release of the R/S-PLUS functions at the above data. This version is NOT BACKWARD COMAPTIBLE with previous versions. As indicated below, if you have previous versions, you should remove any trace of them before installing this version, and should also change each of the examples at the same time. To install the S-PLUS functions and sample analyses in a Windows system, follow these instructions, which will install -- the S-PLUS functions -- an S.dll file for using functions referring to code written and compiled in C and C++ -- HTML help files for the functions -- nine sample analyses and the data that are analyzed A. Installing the S-PLUS functions: 1. Create a directory to contain the S-PLUS functions. For example, on my system the directory is c:\Splus\fdaS\functions If you have already created this directory and installed previous versions of the functions, it is highly recommended to delete all the files in the .Data directory within this directory, or even to delete the entire .Data folder. You should delete all previous versions of the functions in the functions folder as well. Otherwise, you risk interference with previous versions that will cause errors. This version is NOT BACKWARD COMAPTIBLE with previous versions. 2. Put the file "SPLUSfunctions.zip" into this directory. 3. Extract the function files, each with extension ".ssc", from this .zip file using a utility such as WinZip (available on the Web). Each of these function files will contain a function with the same name as the file, and possibly some supporting functions only used by this function. 4. Also extract the file S.dll into the "functions" directory. 5. Start S-PLUS, and attach the "functions" directory if you are not currently in that directory with the "attach" function. On my system, this would be achieved by the command attach("c:\\Program Files\\Insightful\\splus70\\fdaS\\functions") 6. Type in the command source("INSTALL.ssc") You will see each of the function names displayed as it is sourced in. 7. Now, within the "functions" directory, change directory to the .Data/_Hhelp subdirectory. Put the file "SPLUShelp.zip in this subdirectory, and extract all the files. These are help files that will automatically appear when you use "?" or "help" for any of the FDA functions. C. Installing the examples: There are currently nine sample analyses bundled with the data that are analyzed: -- the gait data, in file gait.zip -- the goods index data, in file goodsindex.zip -- the growth data, in file growth.zip -- the handwriting data, in file handwrit.zip -- the lip movement data, in file lip.zip -- the melanoma data, in file melanoma.zip -- the pinch force data, in file pinch.zip -- the refinery data, in file refinery.zip -- the monthly and daily weather data, in file weather.zip You might consider setting up a separate subdirectory for each of these analyses, perhaps within a directory "examples" at the same level as "functions" above. For each of these analyses and data, move the .zip file with appropriate name into the appropriate subdirectory. Then extract the files in this file using WinZip or some other utility. To run a sample analysis, start S-PLUS. At the top of each sample analysis file, with the extension ".ssc", you will find two "attach" commands that attach, respectively, the ".Data" directory of the "functions" directory, and the directory containing the sample data. The paths in these commands are what I use in my system, and you may have to change them to what is appropriate for your system. For example, at the top of the "daily.ssc" file, you will find the two commands attach("c:\\Program Files\\Insightful\\splus70\\fdaS\\functions\\.Data") attach("c:\\Program Files\\Insightful\\splus70\\fdaS\\examples\\weather") that make the needed attachments on my system. Last modified on 24 November 2005