PetePari
PetePari

Reputation: 11

R: Saved workspace have no variable in it

Workspace can be saved successfully, but once I open it , there is nothing in it as I run ls() in that workspace and found that:

ls() character(0)

and that saved workspace all have 1KB size.

but after I loaded it using load("xxx.Rdata") It works and all variables is actually there.

Is there anything possibly wrong with my computer or could you tell me the way to fix that? I used the same code to run and save workspace before I installed R 3.2.4 and it works just fine.

Please ^^

Upvotes: 1

Views: 134

Answers (1)

Sowmya S. Manian
Sowmya S. Manian

Reputation: 3843

In R console, there are two options for Workspace. Saving Workspace as xxx.RData. Close R.

Double click on xxx.RData where you saved and it will open in R. type ls()

OR

Open R

Go to File --> Load Workspace --> Select xxx.RData, type ls()

or

>load("xxx.RData")
>ls()

Upvotes: 0

Related Questions