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}.TMContainer00000000000000000001.regtrans-ms"

[23] 
"NTUSER.DAT{016888bd-6c6f-11de-8d1d-001e0bcde3ec}.TMContainer00000000000000000002.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 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.

Reply via email to