Have saved text files in the same working directory as well as in the desktop. I am still unable to read url or files in R. Screenshot of the commands given by me in R are attached herewith. The version of R I am using is 3.2.1 on a Windows 8 laptop. Thanks for the help. Regards, Nikita Dinger -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot 2015-08-09 01.36.30.png Type: image/png Size: 118849 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20150809/3a6a4c04/attachment.png>
Errrr, 1. urls need to be ull qualified including the protocol such as "http://www.facebook.com" 2. filenames are relative to the current working directory, if they are not in the current working directory, secify the full path. 3. read.csv() cannot read docx files.... Best, Uwe Ligges On 08.08.2015 22:19, Nikita Dinger wrote:> Have saved text files in the same working directory as well as in the > desktop. > I am still unable to read url or files in R. > > Screenshot of the commands given by me in R are attached herewith. > > The version of R I am using is 3.2.1 on a Windows 8 laptop. > > Thanks for the help. > > Regards, > Nikita Dinger > > > Screenshot 2015-08-09 01.36.30.png > > > > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. >
To check what your actual working directory is try
getwd()
To look a list of files in your actual working directory try
dir()
If your working directory is not what you expected change it with
setwd("path to directory")
There are several ways in Windows to ensure that R starts in the required
directory (eg double clicking on a file which starts in R in the working
directory or setting up a short cut on your desktop which starts R in that
directory, use projects in RStudio). I usually use the setwd() method or
PStudio projects.
John C Frain
3 Aranleigh Park
Rathfarnham
Dublin 14
Ireland
www.tcd.ie/Economics/staff/frainj/home.html
mailto:frainj at tcd.ie
mailto:frainj at gmail.com
On 8 August 2015 at 21:19, Nikita Dinger <dingernikita at gmail.com>
wrote:
> Have saved text files in the same working directory as well as in the
> desktop.
> I am still unable to read url or files in R.
>
> Screenshot of the commands given by me in R are attached herewith.
>
> The version of R I am using is 3.2.1 on a Windows 8 laptop.
>
> Thanks for the help.
>
> Regards,
> Nikita Dinger
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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]]