I'm using robjects to execute an R script from python. When R finishes it leaves behind it many temporary files. I can't modify the R script but I also don't see there any reference to tempfile() so I assume it is coming from a library the R script is using. I tried deleting these files from python at the end of the script run but they are locked by some process. I assumed that if there is a live R interpreter running, closing it will release these files. I tried calling robject.r("quit()") but that killed my python process as well. Any ideas why? How can I close only the R interpreter from robjects? I prefer not to kill the R interpreter using the OS.
Calling r.("quit()") from robjects closes the python process as well
240 Views Asked by user1942586 At
0
There are 0 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in R
- in R, recovering strings that have been converted to factors with factor()
- How to reinstall pandoc after removing .cabal?
- How do I code a Mixed effects model for abalone growth in Aquaculture nutrition with nested individuals
- How to save t.test result in R to a txt file?
- how to call function from library in formula with R type provider
- geom_bar define border color with different fill colors
- Different outcome using model.matrix for a function in R
- Creating a combination data.table in R
- Force specific interactions in Package 'earth' in R
- Output from recursive function R
- Extract series of observations from dataframe for complete sets of data
- Retrieve path of supplementary data file of developed package
- r package development - own function not visible for opencpu
- Label a dataset according to bins of a histogram
- multiply each columns of a matrix by a vector
Related Questions in TEMPORARY-FILES
- Displaying a temporary html file with webbrowser in Python
- How to open HTML file with default browser and delete it after user viewed it?
- Use NamedTemporaryFile to read from stdout via subprocess on Linux
- Vim netrw source session error?
- Automatically deleting old SAS temporary files
- How to check whether the temporary Internet files folder is empty before and after deletion?
- How to access a tempfile object across 2 separate requests (was:views) in Django
- How can I avoid using a temporary file in this bash script?
- File upload with WinSCP .NET/COM with temporary filenames
- CSHTML file is not compiled anymore
- Creating a large temporary file in a platform-agnostic way
- Calling r.("quit()") from robjects closes the python process as well
- Redirecting the input of two commands via pipe operator in Bash
- Modify Java File attributes without changing disk-file
- After writing to file f, calling f.read() returns None
Related Questions in QUIT
- Why does R produce an error when calling quit() inside a function and can this be avoided?
- Force quit of Android App using System.exit(0) doesn't work
- Calling r.("quit()") from robjects closes the python process as well
- How do I quit a window in tkinter without quitting program?
- tmux bind-key to kill all or maybe a grouping of windows/panels
- does dealloc method being executed normally when quitting the application?
- How to abort an interactive rebase if --abort doesn't work?
- how to quit firefox by using extensions quit firefox
- Android: Ask user to either enable wifi or quit app
- Quit item menu in Android application?
- Qt app stays in memory even after MainWindow is closed
- How to design a .net windows form application that never quit when user log out of Remote Desktop connection
- Why does SMTP (and similar protocols) have the QUIT command?
- Not able to close instances of different browser using driver.quit
- How to stop the activity recognition after the quitting the application?
Related Questions in ROBJECTS
- Calling r.("quit()") from robjects closes the python process as well
- RPy2: LookupError when calling R function 'DEoptim' in python
- Save objects resulting from a for loop in R
- import rpy2.robjects gives "cons memory exhausted"
- rpy2 'knn' analysis error: too many ties in knn
- How to open Robj file in Rstudio or R?
- rpy2.rinterface_lib.embedded.RRuntimeError: Error: RStudio not running
- How to use correlation argument of nlme model in rpy2
- Segmentation fault 11 in Python when importing pandas.rpy.common
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?