Princeton University Library Princeton University Library

Search DSS





Finding Data Analyzing Data Citing data

About Us


DSS lab consultation schedule
(Monday-Friday)
Sep 1-Oct 16By Zoom appt. here
Oct 19-Dec 4Virtual Zoom Walk-ins
Dec 7-Jan 31By Zoom appt. here
Feb 1-April 30Virtual Zoom Walk-ins
May 3-Aug 31By appt. here
For quick questions email data@princeton.edu.
*No appts. necessary during walk-in hrs.
Note: the DSS lab is open as long as Firestone is open, no appointments necessary to use the lab computers for your own analysis.

Follow DssData on Twitter
See DSS on Facebook

Home Online Help Statistical Packages S-Plus Using S-Plus on Unix

Using S-Plus on Unix

Before you start on using S-Plus, you need to understand a couple things about using unix. While it is beyond the scope of this document to teach you how to use unix, we will introduce some basic things that will make your life a lot easier when using S-Plus.

Basic Unix Commands

Unix is often run from the command line. Basically, this means that it does not use menus or window-type graphical displays (it can, by the way, but that's not important). You should know the following unix commands to help you navigate through unix and start using S-Plus.

Basic Unix Commands
Command Description
ls list files in current directory (folder)
ls path list files in path
cd change location to home (i.e. /u/fred/)
cd it directory change location to directory
rm file(s) remove file(s)
mkdir name make a new directory called name

These few commands allow you to move through unix fairly easily.

Invoking Splus

Now we can really begin. To enter S-Plus you type Splus. To get out you type q().

Note that UNIX commands are case-sensitive. The command Splus will invoke the software, but the command sPlus or SPLUS will not.

Storing Objects

Before we start S-Plus we need to deal with the question where S-Plus will store everything. Because S-Plus is object oriented, you will generate a lot of files (objects). The first time you invoke S-Plus it will create a folder called .Data (or MySwork, on some systems) at the top level of your unix account ( /u/fred/.Data).

If you do a lot of statistical programming, you will probably want to create multiple .Data directories in different folders. You can do this using the unix mkdir command.

This page last updated on: