Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Yuliya Matveyeva
Good afternoon,
 I am actually concerned with this issue too. What if I run R at work and I
simply do not have the necessary access-rights in order to delete the .Rdata
file. Do I really have only 3 choices: ask the admin to delete it, live with
it always reloading the previous workspace, resave an empty workspace.
That'd be sad if it really was like that...

2010/11/14 Peter Langfelder peter.langfel...@gmail.com

 On Sat, Nov 13, 2010 at 10:33 PM, Stephen Liu sati...@yahoo.com wrote:
  Win 7 64 bit
  R version 2.11.1 (2010-05-31)
 
 
  How to permanently remove;
  [Previously saved workspace restored]
 
  rm (list = ls( ))
 
  On next start it still displays;
  .
  [Previously saved workspace restored]
 
 
  There is a file keeping the previous data on Linux
  .Rdata

 To the best of my knowledge there's an .RData file on Windows as well.
 Check your default directory (usually Documents but may be something
 else - start R as usual and type getwd() before you do anything).
 Remove the .RData file as well the file .Rhistory and you should be
 good to go.

 Peter

 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Prof Brian Ripley

On Sun, 14 Nov 2010, Yuliya Matveyeva wrote:


Good afternoon,
I am actually concerned with this issue too. What if I run R at work and I
simply do not have the necessary access-rights in order to delete the .Rdata
file. Do I really have only 3 choices: ask the admin to delete it, live with
it always reloading the previous workspace, resave an empty workspace.
That'd be sad if it really was like that...


It isn't.  Please do read 'An Introduction to R': you can start R with 
--no-restore.


And BTW


rm (list = ls( ))


isn't correct: it needs to be

rm (list = ls(all=TRUE))

However, I suspect that YM is starting R with a non-writable working 
directory, and (on Windows) the suggestion is that you create a new 
shortcut with the working directory (the 'Start in' property) changed 
to the base directory of your project.


We've seen instances with an all-users adminstrator install of R on 
Windows 7 (but not earlier) that non-administrator users cannot edit 
nor copy the shortcut on their desktop.  This seems to be a bug in 
Windows, so simply create a new one to (e.g.)

c:/Program Files/R/R-2.12.0/bin/i386/Rgui.exe



2010/11/14 Peter Langfelder peter.langfel...@gmail.com


On Sat, Nov 13, 2010 at 10:33 PM, Stephen Liu sati...@yahoo.com wrote:

Win 7 64 bit
R version 2.11.1 (2010-05-31)


How to permanently remove;
[Previously saved workspace restored]


rm (list = ls( ))


On next start it still displays;
.
[Previously saved workspace restored]


There is a file keeping the previous data on Linux
.Rdata


To the best of my knowledge there's an .RData file on Windows as well.
Check your default directory (usually Documents but may be something
else - start R as usual and type getwd() before you do anything).
Remove the .RData file as well the file .Rhistory and you should be
good to go.

Peter

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



--
Brian D. Ripley,  rip...@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Joshua Wiley
Hi,

On Sun, Nov 14, 2010 at 1:14 AM, Yuliya Matveyeva yu...@statmod.ru wrote:
 Good afternoon,
  I am actually concerned with this issue too. What if I run R at work and I
 simply do not have the necessary access-rights in order to delete the .Rdata

One wonders how it was created in the first place; with write
privileges almost always come delete privileges.

 file. Do I really have only 3 choices: ask the admin to delete it, live with
 it always reloading the previous workspace, resave an empty workspace.
 That'd be sad if it really was like that...

There are always more options, but they may not be more pleasant.
Here are some examples:

1) Start R in a different directory
2) Rename the .Rdata file
3) Move the .Rdata file out of R's starting directory
4) add --vanilla to your start R command (also useful if your .Rdata
file is corrupt or you want to avoid using your .Rprofile file for
some reason)
5) Stop using R (though this seems a little extreme)

[snip]

-- 
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Stephen Liu
Hi folks,

Tks for your advice.

Summing up all your advice I performed following steps without success.

1)
 rm (list = ls( ))
 q()
save working image

2)
 rm (list = ls(all=TRUE))
 q()
save working image

3)
 getwd()
[1] C:/Users/satimis
.Rhistory

 list.files(path=C:\Users\satimis, all.files = FALSE)
Error: '\U' used without hex digits in character string starting C:\U

 list.files(path=C:\Users\satimis, all.files = TRUE)
Error: '\U' used without hex digits in character string starting C:\U

- Windows Explorer
delete .Rhistory manually


Start R

[Previously saved workspace restored]

is still there


Please advise.  TIA

B.R.
Stephen L




- Original Message 
From: Stephen Liu sati...@yahoo.com
To: r-help@r-project.org
Sent: Sun, November 14, 2010 2:33:21 PM
Subject: [R] How to permanently remove [Previously saved workspace restored]

Win 7 64 bit
R version 2.11.1 (2010-05-31)


How to permanently remove;
[Previously saved workspace restored]

 rm (list = ls( ))

On next start it still displays;
.
[Previously saved workspace restored]


There is a file keeping the previous data on Linux
.Rdata

How about on Windows?

TIA

B.R.
Stephen L




__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.




__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Joshua Wiley
On Sun, Nov 14, 2010 at 2:00 AM, Stephen Liu sati...@yahoo.com wrote:
 Hi folks,

 Tks for your advice.

 Summing up all your advice I performed following steps without success.

 1)
 rm (list = ls( ))
 q()
 save working image

 2)
 rm (list = ls(all=TRUE))
 q()
 save working image

 3)
 getwd()
 [1] C:/Users/satimis
 .Rhistory

 list.files(path=C:\Users\satimis, all.files = FALSE)
 Error: '\U' used without hex digits in character string starting C:\U

You need to either escape the backslashes (with another backslash) or
use forward slashes.  Perhaps most simply:

list.files(path = getwd(), all.files = FALSE)


 list.files(path=C:\Users\satimis, all.files = TRUE)
 Error: '\U' used without hex digits in character string starting C:\U

 - Windows Explorer
 delete .Rhistory manually

don't forget the .Rdata file, history is separate.



 Start R
 
 [Previously saved workspace restored]

 is still there


 Please advise.  TIA

Sure the message is there but it should have restored an empty
workspace so it should have absolutely no impact on your work.  If the
message really bugs you, add the --vanilla flag when you start R.  If
you are using a shortcut to R, you can add it there, if you start R
from the command prompt you can use it directly just like R
--vanilla.

Josh


 B.R.
 Stephen L
[snip]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Stephen Liu
Hi Joshua,

 list.files(path = getwd(), all.files = TRUE)
 [1] 
. 
 
 
 [2] 
..
 
 
 [3] 
.RData
 
 
 [4] 
.Rhistory 
 
 
 [5] 
AppData   
 
 
 [6] Application 
Data   
 

 [7] 
Contacts  
 
 
 [8] 
Cookies   
 
 
 [9] 
Desktop   
 
 
[10] 
Documents 
 
 
[11] 
Downloads 
 
 
[12] 
Favorites 
 
 
[13] 
Links 
 
 
[14] Local 
Settings   
  
 
[15] 
Music 
 
 
[16] My 
Documents  
 
 
[17] 
NetHood   
 
 
[18] 
NTUSER.DAT
 
 
[19] 
ntuser.dat.LOG1   
 
 
[20] 
ntuser.dat.LOG2   
 
 
[21] 
NTUSER.DAT{016888bd-6c6f-11de-8d1d-001e0bcde3ec}.TM.blf   
 
 
[22] 
NTUSER.DAT{016888bd-6c6f-11de-8d1d-001e0bcde3ec}.TMContainer0001.regtrans-ms

[23] 
NTUSER.DAT{016888bd-6c6f-11de-8d1d-001e0bcde3ec}.TMContainer0002.regtrans-ms

[24] 
ntuser.ini
 
 
[25] 
Pictures  
 
 
[26] 
PrintHood 
 
 
[27] 
R 
 
 
[28] 
Recent
 
 
[29] Saved 
Games  
  
 
[30] 
Searches  
 
 
[31] 
SendTo
 
 
[32] Start 
Menu   
  
 
[33] 
Templates 
 
 
[34] Videos  


.Rhistory and .RDate are there.

But I can't find .RDate on Windows Explorer.  Only .Rhistory is there.

 rm (list = ls(all=TRUE))
 q()
save working image

On next start of R
[Previously saved workspace restored]
still popup


B.R.
Stephen L



- Original Message 
From: Joshua Wiley jwiley.ps...@gmail.com
To: Stephen Liu sati...@yahoo.com
Cc: r-help@r-project.org
Sent: Sun, November 14, 2010 6:31:11 PM
Subject: Re: [R] How to permanently remove [Previously saved workspace restored]

On Sun, Nov 14, 2010 at 2:00 AM, Stephen Liu sati...@yahoo.com wrote:
 Hi folks,

 Tks for your advice.

 Summing up all your advice I performed following steps without success.

 1)
 rm (list = ls( ))
 q()
 save working image

 2)
 rm (list = ls(all=TRUE))
 q()
 save working image

 3)
 getwd()
 [1] C:/Users/satimis
 .Rhistory

 list.files(path=C:\Users\satimis, all.files = FALSE)
 Error: '\U' used without hex digits in character string starting C:\U

You need to either escape the backslashes (with another backslash) or
use forward slashes.  Perhaps most simply:

list.files(path = getwd(), all.files = FALSE)


 list.files(path=C:\Users\satimis, all.files = TRUE)
 Error: '\U' used without hex digits in character string starting C:\U

 - Windows Explorer
 delete .Rhistory manually

don't forget the .Rdata file, history is separate.



 Start R
 
 [Previously saved workspace restored]

 is still there


 Please advise.  TIA

Sure the message is there but it should have restored an empty
workspace so it should have absolutely no impact on your work.  If the
message really bugs

Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Joshua Wiley
On Sun, Nov 14, 2010 at 3:40 AM, Stephen Liu sati...@yahoo.com wrote:
 Hi Joshua,

 list.files(path = getwd(), all.files = TRUE)
  [3]
 .RData
  [4]
 .Rhistory
 .Rhistory and .RDate are there.

Note that these files start with a .


 But I can't find .RDate on Windows Explorer.  Only .Rhistory is there.

This is likely a feature of Windows Explorercertain types of
files are hidden by default (like those that start with .).  You can
adjust this behavior in the folder options (if the idea of
protected/hidden files and folder options all sounds new to you, now
is a great opportunity to spend some time exploring your operating
system, learning how it works and how to use it at a more serious
level than the basic user it assumesGoogle is your friend here,
there are literally thousands of articles, walkthroughs, and tutorials
on different aspects of Windows).

 rm (list = ls(all=TRUE))

This does NOT delete the workspace, it just clears your worksapce of
any objects.

 q()
 save working image

Now you will have saved your current worksapce (which if you just used
rm() as above, will be empty, but still there).

 On next start of R
 [Previously saved workspace restored]
 still popup

Now you probably just restored an empty workspace.  This is not a
problem, it is normal R behavior and is a sign that everything is
working as expected.



 B.R.
 Stephen L

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Stephen Liu
Hi Joshua,

 But I can't find .RDate on Windows Explorer.  Only .Rhistory is there.

 This is likely a feature of Windows Explorercertain types of
 files are hidden by default (like those that start with .).  You can
 adjust this behavior in the folder options (if the idea of ..

I'm aware of the hidden files.  [hidden] on properties has not bee checked.  
Otherwise .Rhistory won't show up.

The strange thing is on;
- Start - Search
RData

I can't find .RData.  But search on Rhistory found .Rhistory.  Would it be 
.RData not yet created?


 On next start of R
 [Previously saved workspace restored]
 still popup

 Now you probably just restored an empty workspace.  This is not a
 problem, it is normal R behavior and is a sign that everything is
 working as expected.

Ah I see.  Thanks


B.R.
Stephen L




- Original Message 
From: Joshua Wiley jwiley.ps...@gmail.com
To: Stephen Liu sati...@yahoo.com
Cc: r-help@r-project.org
Sent: Sun, November 14, 2010 11:42:37 PM
Subject: Re: [R] How to permanently remove [Previously saved workspace restored]

On Sun, Nov 14, 2010 at 3:40 AM, Stephen Liu sati...@yahoo.com wrote:
 Hi Joshua,

 list.files(path = getwd(), all.files = TRUE)
  [3]
 .RData
  [4]
 .Rhistory
 .Rhistory and .RDate are there.

Note that these files start with a .


 But I can't find .RDate on Windows Explorer.  Only .Rhistory is there.

This is likely a feature of Windows Explorercertain types of
files are hidden by default (like those that start with .).  You can
adjust this behavior in the folder options (if the idea of
protected/hidden files and folder options all sounds new to you, now
is a great opportunity to spend some time exploring your operating
system, learning how it works and how to use it at a more serious
level than the basic user it assumesGoogle is your friend here,
there are literally thousands of articles, walkthroughs, and tutorials
on different aspects of Windows).

 rm (list = ls(all=TRUE))

This does NOT delete the workspace, it just clears your worksapce of
any objects.

 q()
 save working image

Now you will have saved your current worksapce (which if you just used
rm() as above, will be empty, but still there).

 On next start of R
 [Previously saved workspace restored]
 still popup

Now you probably just restored an empty workspace.  This is not a
problem, it is normal R behavior and is a sign that everything is
working as expected.



 B.R.
 Stephen L




__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Duncan Murdoch

On 14/11/2010 10:42 AM, Joshua Wiley wrote:

On Sun, Nov 14, 2010 at 3:40 AM, Stephen Liusati...@yahoo.com  wrote:

Hi Joshua,


list.files(path = getwd(), all.files = TRUE)

  [3]
.RData
  [4]
.Rhistory
.Rhistory and .RDate are there.


Note that these files start with a .



But I can't find .RDate on Windows Explorer.  Only .Rhistory is there.


This is likely a feature of Windows Explorercertain types of
files are hidden by default (like those that start with .).


That's not true:  it's Unix ls that hides filenames starting with a .. 
 Windows Explorer does hide some files, but I don't think it is ever 
based on the name, it's based on the attributes.


What Windows Explorer does that is incredibly stupid is that (by 
default) it hides file extensions for known file types.  Generally 
.RData will be registered as a known file type.  Exporer will cut off 
the .RData part the name of a file with that extension, and only show 
the first part of the name.  Since the file .RData has no starting 
part of a name, it will be listed with a blank name.


What you should do (and what Microsoft should set the default to) is to 
turn off this bad policy of listing filenames incorrectly.  I don't 
remember how to do it in Windows 7 or Vista, but on XP, here's how:


Go into Explorer in some folder.

Click on the Tools menu, then the Folder Options... choice.

Choose the View tab.

About 10 choices down within Files and Folders, you'll see Hide 
Extensions for Known File Types.  Make sure this is *not* checked.


If you're sane, you'll then click on the button Apply to all folders, 
but you might just want to click on OK to try it out on one folder first.


Duncan Murdoch






 You can

adjust this behavior in the folder options (if the idea of
protected/hidden files and folder options all sounds new to you, now
is a great opportunity to spend some time exploring your operating
system, learning how it works and how to use it at a more serious
level than the basic user it assumesGoogle is your friend here,
there are literally thousands of articles, walkthroughs, and tutorials
on different aspects of Windows).


rm (list = ls(all=TRUE))


This does NOT delete the workspace, it just clears your worksapce of
any objects.


q()

save working image


Now you will have saved your current worksapce (which if you just used
rm() as above, will be empty, but still there).


On next start of R
[Previously saved workspace restored]
still popup


Now you probably just restored an empty workspace.  This is not a
problem, it is normal R behavior and is a sign that everything is
working as expected.




B.R.
Stephen L


__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Joshua Wiley
@Stephen  Sorry, Duncan's right, it is likely not a protected/hidden
file issue.  At the risk of nuking the fridge, you could also open an
elevated command prompt then navigate to the relevant directory and
delete the file:

 cd C:\Users\satimis
 del .RData
 exit

Probably too much trouble for deleting a single file, but handy if you
want to do a lot (e.g., all files with the *.RData extension or...).
The new PowerShell is starting to grow on me too (it seems wider), but
I am not as familiar with the commands.

Josh

On Sun, Nov 14, 2010 at 8:43 AM, Duncan Murdoch
murdoch.dun...@gmail.com wrote:
 This is likely a feature of Windows Explorercertain types of
 files are hidden by default (like those that start with .).

 That's not true:  it's Unix ls that hides filenames starting with a ..
  Windows Explorer does hide some files, but I don't think it is ever based
 on the name, it's based on the attributes.

 What Windows Explorer does that is incredibly stupid is that (by default) it
 hides file extensions for known file types.  Generally .RData will be
 registered as a known file type.  Exporer will cut off the .RData part the
 name of a file with that extension, and only show the first part of the
 name.  Since the file .RData has no starting part of a name, it will be
 listed with a blank name.

 What you should do (and what Microsoft should set the default to) is to turn
 off this bad policy of listing filenames incorrectly.  I don't remember how
 to do it in Windows 7 or Vista, but on XP, here's how:

 Go into Explorer in some folder.

 Click on the Tools menu, then the Folder Options... choice.

 Choose the View tab.

 About 10 choices down within Files and Folders, you'll see Hide Extensions
 for Known File Types.  Make sure this is *not* checked.

@Duncan  You're right, as usual.  I mixed Windows and Linux.  Changing
the setting for extensions is basically as you described on my Windows
7 except I have to hit the left alt for Windows Explorer to even show
the file menu where I can click on Tools - Folder Options (maybe just
my configuration).  Does .RData get registered by default but not
.Rhistory? (since Stephen reported seeing the .Rhistory file).


 If you're sane, you'll then click on the button Apply to all folders, but
 you might just want to click on OK to try it out on one folder first.

 Duncan Murdoch

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Stephen Liu
Hi Duncun,

Thanks for your advice.

Start Window Explorer as Admin
- Organize - Folder and Search Option
- View
Under Advanced settings:
[uncheck] Hide extension for known file types
- OK

.RData shown up.  Also it can be searched.


B.R.
Stephen L





- Original Message 
From: Duncan Murdoch murdoch.dun...@gmail.com
To: Joshua Wiley jwiley.ps...@gmail.com
Cc: Stephen Liu sati...@yahoo.com; r-help@r-project.org
Sent: Mon, November 15, 2010 12:43:18 AM
Subject: Re: [R] How to permanently remove [Previously saved workspace restored]

On 14/11/2010 10:42 AM, Joshua Wiley wrote:
 On Sun, Nov 14, 2010 at 3:40 AM, Stephen Liusati...@yahoo.com  wrote:
 Hi Joshua,

 list.files(path = getwd(), all.files = TRUE)
   [3]
 .RData
   [4]
 .Rhistory
 .Rhistory and .RDate are there.

 Note that these files start with a .


 But I can't find .RDate on Windows Explorer.  Only .Rhistory is there.

 This is likely a feature of Windows Explorercertain types of
 files are hidden by default (like those that start with .).

That's not true:  it's Unix ls that hides filenames starting with a .. 
  Windows Explorer does hide some files, but I don't think it is ever 
based on the name, it's based on the attributes.

What Windows Explorer does that is incredibly stupid is that (by 
default) it hides file extensions for known file types.  Generally 
.RData will be registered as a known file type.  Exporer will cut off 
the .RData part the name of a file with that extension, and only show 
the first part of the name.  Since the file .RData has no starting 
part of a name, it will be listed with a blank name.

What you should do (and what Microsoft should set the default to) is to 
turn off this bad policy of listing filenames incorrectly.  I don't 
remember how to do it in Windows 7 or Vista, but on XP, here's how:

Go into Explorer in some folder.

Click on the Tools menu, then the Folder Options... choice.

Choose the View tab.

About 10 choices down within Files and Folders, you'll see Hide 
Extensions for Known File Types.  Make sure this is *not* checked.

If you're sane, you'll then click on the button Apply to all folders, 
but you might just want to click on OK to try it out on one folder first.

Duncan Murdoch






  You can
 adjust this behavior in the folder options (if the idea of
 protected/hidden files and folder options all sounds new to you, now
 is a great opportunity to spend some time exploring your operating
 system, learning how it works and how to use it at a more serious
 level than the basic user it assumesGoogle is your friend here,
 there are literally thousands of articles, walkthroughs, and tutorials
 on different aspects of Windows).

 rm (list = ls(all=TRUE))

 This does NOT delete the workspace, it just clears your worksapce of
 any objects.

 q()
 save working image

 Now you will have saved your current worksapce (which if you just used
 rm() as above, will be empty, but still there).

 On next start of R
 [Previously saved workspace restored]
 still popup

 Now you probably just restored an empty workspace.  This is not a
 problem, it is normal R behavior and is a sign that everything is
 working as expected.



 B.R.
 Stephen L

 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.



__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-14 Thread Stephen Liu
Hi Josh,

Start Command Prompt as Admin

C:\Windows\system32cd C:\Users\satimis

C:\Users\satimisdir
 Volume in drive C has no label.
 Volume Serial Number is EC2D-3F1A

 Directory of C:\Users\satimis

11/14/2010  05:52 PMDIR  .
11/14/2010  05:52 PMDIR  ..
11/14/2010  01:58 PM42 .RData
11/14/2010  07:33 PM94 .Rhistory
05/11/2010  08:33 PMDIR  AppData
08/06/2010  12:57 PMDIR  Contacts
11/13/2010  12:00 AMDIR  Desktop
11/14/2010  01:39 PMDIR  Documents
08/27/2010  05:34 PMDIR  Downloads
08/06/2010  12:57 PMDIR  Favorites
08/06/2010  12:57 PMDIR  Links
08/06/2010  12:57 PMDIR  Music
08/06/2010  12:57 PMDIR  Pictures
08/19/2010  10:34 AMDIR  R
08/06/2010  12:57 PMDIR  Saved Games
11/14/2010  07:31 PMDIR  Searches
08/06/2010  12:57 PMDIR  Videos
   2 File(s)136 bytes
  15 Dir(s)  19,187,191,808 bytes free

.RData is there.

C:\Users\satimisdel .RData


Start R
the warning [Previously saved workspace restored] disappears

Thanks


B.R.
Stephen L



- Original Message 
From: Joshua Wiley jwiley.ps...@gmail.com
To: Stephen Liu sati...@yahoo.com
Cc: r-help@r-project.org
Sent: Mon, November 15, 2010 1:26:16 AM
Subject: Re: [R] How to permanently remove [Previously saved workspace restored]

@Stephen  Sorry, Duncan's right, it is likely not a protected/hidden
file issue.  At the risk of nuking the fridge, you could also open an
elevated command prompt then navigate to the relevant directory and
delete the file:

 cd C:\Users\satimis
 del .RData
 exit

Probably too much trouble for deleting a single file, but handy if you
want to do a lot (e.g., all files with the *.RData extension or...).
The new PowerShell is starting to grow on me too (it seems wider), but
I am not as familiar with the commands.

Josh

On Sun, Nov 14, 2010 at 8:43 AM, Duncan Murdoch
murdoch.dun...@gmail.com wrote:
 This is likely a feature of Windows Explorercertain types of
 files are hidden by default (like those that start with .).

 That's not true:  it's Unix ls that hides filenames starting with a ..
  Windows Explorer does hide some files, but I don't think it is ever based
 on the name, it's based on the attributes.

 What Windows Explorer does that is incredibly stupid is that (by default) it
 hides file extensions for known file types.  Generally .RData will be
 registered as a known file type.  Exporer will cut off the .RData part the
 name of a file with that extension, and only show the first part of the
 name.  Since the file .RData has no starting part of a name, it will be
 listed with a blank name.

 What you should do (and what Microsoft should set the default to) is to turn
 off this bad policy of listing filenames incorrectly.  I don't remember how
 to do it in Windows 7 or Vista, but on XP, here's how:

 Go into Explorer in some folder.

 Click on the Tools menu, then the Folder Options... choice.

 Choose the View tab.

 About 10 choices down within Files and Folders, you'll see Hide Extensions
 for Known File Types.  Make sure this is *not* checked.

@Duncan  You're right, as usual.  I mixed Windows and Linux.  Changing
the setting for extensions is basically as you described on my Windows
7 except I have to hit the left alt for Windows Explorer to even show
the file menu where I can click on Tools - Folder Options (maybe just
my configuration).  Does .RData get registered by default but not
.Rhistory? (since Stephen reported seeing the .Rhistory file).


 If you're sane, you'll then click on the button Apply to all folders, but
 you might just want to click on OK to try it out on one folder first.

 Duncan Murdoch




__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] How to permanently remove [Previously saved workspace restored]

2010-11-13 Thread Stephen Liu
Win 7 64 bit
R version 2.11.1 (2010-05-31)


How to permanently remove;
[Previously saved workspace restored]

 rm (list = ls( ))

On next start it still displays;
.
[Previously saved workspace restored]


There is a file keeping the previous data on Linux
.Rdata

How about on Windows?

TIA

B.R.
Stephen L




__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-13 Thread Joshua Wiley
On Sat, Nov 13, 2010 at 10:33 PM, Stephen Liu sati...@yahoo.com wrote:

 Win 7 64 bit
 R version 2.11.1 (2010-05-31)


 How to permanently remove;
 [Previously saved workspace restored]

  rm (list = ls( ))

 On next start it still displays;
 .
 [Previously saved workspace restored]


 There is a file keeping the previous data on Linux
 .Rdata

 How about on Windows?

Generally the same.  Just delete the file if you do not want it.
Also, if you clear your workspace and save and shutdown once, and then
never save your workspace when you quit, it will just load an empty
workspace generally (but in the event that you would like to save your
workspace once for some reason, you just have to save and quit and it
will be there when you get back).

HTH,

Josh


 TIA

 B.R.
 Stephen L




 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.


--
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] How to permanently remove [Previously saved workspace restored]

2010-11-13 Thread Peter Langfelder
On Sat, Nov 13, 2010 at 10:33 PM, Stephen Liu sati...@yahoo.com wrote:
 Win 7 64 bit
 R version 2.11.1 (2010-05-31)


 How to permanently remove;
 [Previously saved workspace restored]

 rm (list = ls( ))

 On next start it still displays;
 .
 [Previously saved workspace restored]


 There is a file keeping the previous data on Linux
 .Rdata

To the best of my knowledge there's an .RData file on Windows as well.
Check your default directory (usually Documents but may be something
else - start R as usual and type getwd() before you do anything).
Remove the .RData file as well the file .Rhistory and you should be
good to go.

Peter

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.