简体   繁体   中英

In Bluesky Statistics How do I write output to a csv file

I can't get write.csv or write.table to work in the r editor of BlueSky Statistics.

I usually just use this format in RStudio and it works perfectly.

write.csv(df, "zzz.csv")

Any hints?"

The default install location for BlueSky Statistics is 'C:\\Program Files', where by default, there is no write permission (for creating or deleting files). Also, saving a file in the install location is not safe, as the file may get lost/deleted when the application is uninstalled. So it is always good to save your file(s) in your own folder(s) where you also have write permission.

In short, try to provide a writable location/path in write.csv() or other similar functions/commands. See example below:

To save your file to the Desktop folder.

write.csv(df, "C:/Users/<YourUsername>/Desktop/zzz.csv")

Note: use forward slash(/) as a path separator.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM