I have serious problem with RStudio after crash. My R file I was currently working on has been deleted. I'd like to ask who has similar problem if there's any possibility to restore that file? Basically, RStudio saved that file as 0 bytes, while I was working on it several days. Unfortunatelly didn't made any backup.
My question is: is any possibility RStudio or Windows 7 have R files in cache?
If it was serious bug (happend first time) where should I report it?
EDIT
.Rhistory file has been overwritten as well as 0 byte file. The problem was probably caused by 0 bytes free-space on disk.
Please give any suggestions.
If you have been running your R file then it should have been recorded in the .Rhistory file.
Please have a look at the link below. Basically the file stores all the commands that you've been running.
https://support.rstudio.com/hc/en-us/articles/200526217-Command-History
Related
I've been having issues lately with a VBScript that will download files from an FTP server. It's been working ok for some years, but recently it's been downloading 0-byte files, they're just empty. This should never be the case.
In troubleshooting, I tried downloading a batch of files using the FTP command in CMD, and a different set of files were downloaded that were 0 bytes. (Btw, this is why I didn't add WINSCP and VBScript tags). Upon re-attempting the download of these empty files, I notice they download ok without issue, they come with data. What could be the issue here? What else can I try? Specifically, while keeping the OS, as I do not really have control over this.
Thanks.
I wrapped the download code into a loop, and in each iteration confirmed the file's existence and size by calling a function, and passing it the filename. Doing this allows me to log more and see that the 0-byte downloads happen more often than I thought.
I am using Microsoft Visual Studio 2010. I am running code that includes several large queries accessing large amounts of data. On Friday when I debugged my code it was working properly with no errors. Upon returning today when I run the code 9 out of 10 times I get this error:
[DB2/NT64] SQL0952N Processing was cancelled due to an interrupt. SQLSTATE=57014
After doing some research into I have seen that QUERYTIMEOUTINTERVAL=0 can be added to the [Common] section in the db2cli.ini file. This will cause the CLI driver to wait for the execution of the query without timing out before returning to the application. This should resolve the problem I believe. Only problem is I cannot locate the db2cli.ini file. I am using a windows 7 operating system so I believe the file should be along this path:
C:\Program Files\IBM\SQLLIB\cfg
Only problem is when I enter the cfg file I do not see the db2cli.ini file. Any help would be greatly appreciated. Either on how to find this file and insert the querytimeoutinterval code or another way to resolve my issue. Thanks.
db2cli.ini may not exist unless you have created it previously. There is a sample file to get you started, which should be in C:\ProgramData\IBM\DB2\driver_copy_name\cfg, as indicated in the manual.
You can also avoid editing the file manually -- open the DB2 command line and issue db2 update cli cfg for section common using QueryTimeoutInterval 0 (note that the keyword QueryTimeoutInterval is case-sensitive).
Im finding myself using TextMate 2 more and more for development these days
One thing that is bugging me is that it does not seem to reload a file when it is changed externally.
This is a big problem since I use terminal to switch git branches a lot, and it often results in accidentally saving an older version over the new branch
Sadly the TM team seem to have disabled the Issue tracker on github, and documentation just seems scattered far and wide over the web in tiny scraps.
Any ideas?
Right now it reloads the file silently whenever the file on Disk is changed. There is currently no option for a prompt.
Regarding the closed issue tracker: As an alternative, you can always send a mail to the Textmate users list if you find a problem.
I just updated to TM 2. In the past, I have enjoyed using TM to view development.log as I am introducing new or modified code. TM 1 would ask me if I want to revert to what's on disk and of course I would respond with Yes. Then I could see any additions to the log file. Occasionally I would empty the log file with Cmd+A, Delete, Cmd+S. Macromates, please make TM 2 work like TM 1 reloading content.
I also could not find a solution to this problem which is still there, however it is possible to file an issue using this contact page: http://macromates.com/support
Additionally there are hidden setting which cannot be set from the GUI. Unfortunately they don't include and setting for automatic load from disk: https://github.com/textmate/textmate/wiki/Hidden-Settings
Is it possible to recover an R session if R needed to close due to an error? Is there a temp directory where sessions/data sits before its saved to a file?
What I'd really need is the history of input commands.
(running R version 2.12.1 on WinXP)
Based on answer to my question below, I still have the following question:
Where is R saving .Rhistory to?
I am not able to find this file, despite restarting a new R session and still having access to commands from a previous session. R reference page on SAVEHISTORY did not resolve this for me. It seems that R is storing this data in some temp file/folder that I don't have access to. When I run the command tempdir(), I get a location of the temp directory, but not a single file is being stored there, whether during an active session, or after it closes.
Look at the working directory where you were working when R crashed and look for a file named ".Rhistory" I don't know if every command will be there. But I'm sure that at least the last 50 are there.
HTH
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I stop Filezilla changing my linebreaks?
For some reason Filezilla sometimes removes line breaks on my php files making the code appear on a single line giving me a bunch of errors when I upload my projects, I was looking around and changed my transfer type to Binary but I still have the same issues, downloaded CuteFTP as well but same problem.
Does anyone know what can I do to fix this?
Thanks in advance!
EDIT: Now that I check, when I upload the files to my hosting they look in one line as well, but it doesn't give me any errors, the problem is when I upload to my clients host, could it be some configuration on the hosting or something?
change the "Transfer" to "Binary" (Do not keep it as a "Auto"). Restart Filezilla and upload files as it is.
Well, I managed to solve my problem, I dont exactly know how I just deleted the folder, uploaded as ASCII again, changed to Binari, restarted Filezilla, deleted the files again, and re-upload it as Binari again. For some reason it works now, maybe you have to restart Filezilla to apply the changes correctly.
Sounds like it may not be the FTP that is entirely the issue. If you're saving these files using the wrong encoding, this undesired result can be achieved. What program are you saving these files in?
If you have a file on the server in question that is formatted properly, download it with the FTP programs, then upload it without re-saving it. Check the downloaded copies and the uploaded copies to see if the issue is still occurring.