From murdoch at stats.uwo.ca  Fri Mar 17 21:13:53 2006
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Fri, 17 Mar 2006 15:13:53 -0500
Subject: [Rd] Open .ssc .S ... files in R (PR#8690)
In-Reply-To: <SE2KEXCH01wO5blwHUp00000a39@se2kexch01.insightful.com>
References: <20060317191928.A0B2641EB7@slim.kubism.ku.dk>
	<441B11C3.1030805@stats.uwo.ca>
	<SE2KEXCH01wO5blwHUp00000a39@se2kexch01.insightful.com>
Message-ID: <441B1881.9050302@stats.uwo.ca>

On 3/17/2006 2:53 PM, Tim Hesterberg wrote:
> I think it would be good to make the change in the Mac gui too.
> This would help people on the mac who work on multiple platforms,
> or try scripts from other people.

I don't know anything about how file dialogs work there, so I won't 
touch this one.

> I forgot to mention one other extension, ".t", an extension often
> used for tests to be processed using do.test().  However, this
> is less common, could easily be excluded; people can use "all files"
> for this.

I think "all files" is best for that.

Duncan Murdoch

> 
> Thanks,
> Tim
> 
>>On 3/17/2006 2:19 PM, timh at insightful.com wrote:
>>> ----- Quick summary:  
>>> 
>>> In the File:Open dialog, please change
>>> "S files (*.q)" 
>>> to
>>> "S files (*.q, *.ssc, *.S)" 
>>> and show the corresponding files (including .SSC and .s files).
>>
>>I'll make this change in the Windows Rgui.  Is this an issue in the Mac 
>>gui too?
>>
>>Duncan Murdoch
>>
>>> 
>>> ----- Background
>>> This is motivated by the following query to R-help:
>>> 
>>>>Date: Thu, 16 Mar 2006 22:44:11 -0600
>>>>From: "xpRt.wannabe" <xprt.wannabe at gmail.com>
>>>>Subject: [R] Is there a way to view S-PLUS script files in R
>>>>To: r-help at stat.math.ethz.ch
>>>>
>>>>Dear List,
>>>>
>>>>I have some S-PLUS script files (.ssc).  Does there exist an R
>>>>function/command  that can read such files?  I simply want to view the
>>>>code and practice in R to help me learn the subject matter.
>>>>
>>>>Any help would be greatly appreciated.
>>>>
>>>>platform i386-pc-mingw32
>>>>arch     i386
>>>>os       mingw32
>>>>system   i386, mingw32
>>>>status
>>>>major    2
>>>>minor    2.1
>>>>year     2005
>>>>month    12
>>>>day      20
>>>>svn rev  36812
>>>>language R
>>> 
>>> I responded:
>>>>You can open them in R.  On Windows, File:Open Script,
>>>>change "Files of type" to "All Files", then open the .ssc file.
>>> 
>>> So there is a workaround.  But it is odd that the "S files" option
>>> doesn't actually include what are probably the most common S files.
>>> 
>>> Thanks,
>>> Tim Hesterberg
>>> 
>>> 
>>> --please do not edit the information below--
>>> 
>>> Version:
>>>  platform = i386-pc-mingw32
>>>  arch = i386
>>>  os = mingw32
>>>  system = i386, mingw32
>>>  status = 
>>>  major = 2
>>>  minor = 2.1
>>>  year = 2005
>>>  month = 12
>>>  day = 20
>>>  svn rev = 36812
>>>  language = R
>>> 
>>> Windows XP Professional (build 2600) Service Pack 2.0
>>> 
>>> Locale:
>>> LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
>>> 
>>> Search Path:
>>>  .GlobalEnv, package:glmpath, package:survival, package:splines, package:methods, package:stats, package:graphics, package:grDevices, package:utils, package:datasets, Autoloads, package:base
>>> 
>>> ______________________________________________
>>> R-devel at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>



[Rd] Open .ssc .S ... files in R (PR#8690)
Duncan Murdoch