[R] Need to understand how to troubleshoot below error
meen@m@u @ending from y@hoo@com
Sun Oct 21 05:30:11 CEST 2018
im a new learner to R an I am trying to execute the below and my files get created except for the last function write.csv(housedata, file ="housedatacomplete.csv")write where my new file housedatacomplete.csv does not get created and no write command works for me. Also I am unable to save any files.
write.csv(housedata, file ="housedatacomplete.csv")
On Sunday, 21 October 2018 04:49:49 AM IST, Jeff Newmiller <jdnewmil using dcn.davis.ca.us> wrote:
When you specify a filename such as 'housedatacomplete.csv' which has no directory path information, the file is assumed to be in the "current directory" which you can identify using the status notation at the top of the RStudio console window or using the R getwd() function. Note that we may guess something about what may be wrong if you provide that information in your request here, but it is more likely that you will need to use the operating system to investigate permissions which are really off-topic here. Your best bet will be to find a local computer tech or sysadmin to help you solve your mystery, since there can be many special configurations we on the mailing list won't know about.
One note: since you are using RStudio, be sure to create a Project directory/file and do your work with a project open. That way most problems with permissions and working in the wrong directory should usually be avoided. If you cannot create a project then you definitely need local help.
On October 20, 2018 3:08:28 PM PDT, jim holtman <jholtman using gmail.com> wrote:
>Can you show the code that was being executed at the time. Have you
>verified that the path to the file is correct for the directory that
>are using? Have you validated that you have the correct permissions in
>directory to create the file? Show the complete path length that you
>using and then follow that path to make sure that there is a directory
>there that you can write into.
>*Data Munger Guru*
>*What is the problem that you are trying to solve?Tell me what you want
>do, not how you want to do it.*
>On Sat, Oct 20, 2018 at 1:19 PM MEENA SUBRAMANIAN via R-help <
>r-help using r-project.org> wrote:
>> Im unable to write or save my R studio files
>> Below error is thrown when the same code works for others
>> Error in file(file, ifelse(append, "a", "w")) : cannot open the
>> connectionIn addition: Warning message:In file(file, ifelse(append,
>> "w")) : cannot open file 'housedatacomplete.csv': No such file or
>> [[alternative HTML version deleted]]
>> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained, reproducible code.
> [[alternative HTML version deleted]]
>R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.
Sent from my phone. Please excuse my brevity.
[[alternative HTML version deleted]]
More information about the R-help