Thursday, August 20, 2009

Re: R indentation

On Aug 20, 4:51 pm, Ben Fritz <fritzophre...@gmail.com> wrote:
> On Aug 20, 3:36 pm, Peng Yu <pengyu...@gmail.com> wrote:
>
> > I put the above code in my ~/.vim/indent/r.vimfile. Butvimstill can
> > not correctly indent, for example, the following file. Can somebody
> > take a look what the problem is?
>
> Only if you tell us what you want, and what you're getting instead.
> Without that information, we have no idea what's wrong with the
> current behavior.

The indented result of the 'whatcdf.R' is like the following, which is
obviously not correct. 'for' statement should be aligned with
'library'; 'print' should be aligned with 'pname' in the 3rd line.

library(makecdfenv)
for (f in list.celfiles()) {
pname=cleancdfname(whatcdf(f))
print(pname)
}
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments:

Post a Comment