Hello,

Thank you so much for your guidance. This time I am providing more information. 
R Script and R Console are appended below.

The list.files() below provides evidence the existence of this file in the 
"temp" directory.  Please note that the "heroin.rdata" file was created from 
the SAS data set using the Stat Transfer utility software.

The file.access() below did not return mode=4.  Does this mean that I don't 
have read access to the file?  Is that the reason I could not load the file?

I would appreciate receiving help resolve the issue.

Pradip Muhuri

************R Script ***************
setwd ("D:/temp")
list.files()
file.access("heroin.rdata", mode=4)
load("heroin.rdata")

********* R Console *********

> setwd ("D:/temp")
> list.files()
[1] "heroin.rdata"
> file.access("heroin.rdata", mode=4)
heroin.rdata 
           0 
> load("heroin.rdata")
Error: error reading from connection

________________________________________
From: Jeff Newmiller [jdnew...@dcn.davis.ca.us]
Sent: Tuesday, September 23, 2014 9:20 PM
To: Muhuri, Pradip (SAMHSA/CBHSQ); r-help@r-project.org
Subject: Re: [R] Error Reading from Connection

Insufficient information, and irrelevant information (the second error is a 
direct consequence of the first).

We have no way of knowing based on this input that your file is there. 
(?list.files). We also don't know if you have read access to that file 
(?file.access).

Since you posted in HTML and failed to provide the requested minimum 
information, you should probably (re-)read the Posting Guide mentioned at the 
bottom of this (and any other) message on this mailing list. You should 
probably also follow the advice given there to update your R software to the 
latest version so we don't go chasing any problems in R for your operating 
system that have already been solved.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnew...@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.

On September 23, 2014 5:36:59 PM PDT, "Muhuri, Pradip (SAMHSA/CBHSQ)" 
<pradip.muh...@samhsa.hhs.gov> wrote:
>Hello,
>
>
>
>I am running Rx64 3.03 under Windows 8 environment. I have been getting
>the following error.
>
>when running some of my old R applications. Below is a mock-up example.
>
>
>
>
>
>Could someone please help me resolve the issue?
>
>
>
>Thanks,
>
>
>
>Pradip Muhuri
>
>
>
>
>
>
>
>setwd ("D:/")
>>
>>
>> #load Rdata file
>>
>> load("heroin.rdata")
>Error: error reading from connection
>>
>> str(heroin)
>Error in str(heroin) : object 'heroin' not found
>
>       [[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.
______________________________________________
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