Loading ...
Sorry, an error occurred while loading the content.

85573Re: { SPAM } Re: putting visually selected text into a string

Expand Messages
  • A.Politz
    Dec 1 2:43 PM
      Vincent wrote:

      >sc,
      >
      >I might have a buffer with the following 2 lines:
      >
      >x <- rnorm(100)
      >plot(x)
      >
      >I used A.Politz suggestion (thanks!) and it almost works. The issue is
      >that i get an error when i select both lines -- E492: Not an editor
      >command: plot(x)"'
      >
      >R will accept code segments separated by at ';' but ideally it would
      >be a return after each line of R code.
      >
      >Best,
      >
      >Vincent
      >
      >...
      >
      >>>execute "!osascript -e 'tell application \"R\" to cmd \""
      >>>.command. "\"'"
      >>>
      >....
      >
      >

      Try to use system() instead of exec and '!'.

      -ap



      --
      Ich hab geträumt, der Krieg wär vorbei.


      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • Show all 9 messages in this topic