Vim Tips Wiki
Edit Page
We recommend that you log in before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your Watchlist. Creating an account is quick and free.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 56: Line 56:
 
I suspect it may have something to do with the R.app "Initial Working Directory" preference, which is set to my home directory. R.app may somehow be overriding the working directory command that R-Plugin is attempting to set. Any ideas?
 
I suspect it may have something to do with the R.app "Initial Working Directory" preference, which is set to my home directory. R.app may somehow be overriding the working directory command that R-Plugin is attempting to set. Any ideas?
   
:It appears that the problem is not specific to the R.app GUI. I edited common_global.vim, telling it to use a non-gui R, and this R version exhibits the same problem described above. Also, I tried the current developmental version of R-Plugin, and the same problem occurs with it as well. --20:21, January 27, 2012
+
:It appears that the problem is not specific to the R.app GUI. I edited common_global.vim, telling it to use a non-gui R, and this R version exhibits the same problem described above. --20:21, January 27, 2012
   
 
::In taking a closer look at the relevant code in $HOME/.vim/r-plugin/common_global.vim, it occurs to me that I may be misunderstanding how R-Plugin is supposed to work, when it comes to setting the path of the current Vim buffer. It appears that this isn't even supposed to happen automatically when a Vim instance is launched, but only after the command '\rd' is passed to R from a Vim buffer.
 
::In taking a closer look at the relevant code in $HOME/.vim/r-plugin/common_global.vim, it occurs to me that I may be misunderstanding how R-Plugin is supposed to work, when it comes to setting the path of the current Vim buffer. It appears that this isn't even supposed to happen automatically when a Vim instance is launched, but only after the command '\rd' is passed to R from a Vim buffer.
Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)

Template used on this page: