emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-babal-R-command
@ 2022-06-28 12:54 Naresh Gurbuxani
  2022-06-28 18:42 ` org-babal-R-command Bruno Barbier
       [not found] ` <8d5a82ef-d444-4820-8a63-5544ec60bab4@HE1EUR02FT064.eop-EUR02.prod.protection.outlook.com>
  0 siblings, 2 replies; 4+ messages in thread
From: Naresh Gurbuxani @ 2022-06-28 12:54 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

In my windows computer, R is installed at c:/Program Files/Microsoft/R Open/R-3.5.1/bin

Notice two spaces: “Program Files” and “R Open”

How can I set the variable org-babel-R-command?

I tried
(setq org-babel-R-command “c:/Progra~1/Microsoft/R Open/R-3.5.1/bin/R.exe —slave —no-save”)

But the space between R and Open is a problem.  What is the solution?

Thanks,
Naresh

Sent from my iPhone

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-babal-R-command
@ 2022-06-28 13:03 Payas Relekar
  0 siblings, 0 replies; 4+ messages in thread
From: Payas Relekar @ 2022-06-28 13:03 UTC (permalink / raw)
  To: emacs-orgmode

Naresh Gurbuxani <naresh_gurbuxani@hotmail.com> writes:

Can you escape spaces with backslash?

(setq org-babel-R-command “c:/Program\ Files/Microsoft/R\ Open/R-3.5.1/bin/R.exe —slave —no-save”)

Another way is to use single quotes:

(setq org-babel-R-command “'c:/Program Files/Microsoft/R Open/R-3.5.1/bin/R.exe' —slave —no-save”)

Thanks,
Payas


> In my windows computer, R is installed at c:/Program Files/Microsoft/R Open/R-3.5.1/bin
>
> Notice two spaces: “Program Files” and “R Open”
>
> How can I set the variable org-babel-R-command?
>
> I tried
> (setq org-babel-R-command “c:/Progra~1/Microsoft/R Open/R-3.5.1/bin/R.exe —slave —no-save”)
>
> But the space between R and Open is a problem.  What is the solution?
>
> Thanks,
> Naresh
>
> Sent from my iPhone

--


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-babal-R-command
  2022-06-28 12:54 org-babal-R-command Naresh Gurbuxani
@ 2022-06-28 18:42 ` Bruno Barbier
       [not found] ` <8d5a82ef-d444-4820-8a63-5544ec60bab4@HE1EUR02FT064.eop-EUR02.prod.protection.outlook.com>
  1 sibling, 0 replies; 4+ messages in thread
From: Bruno Barbier @ 2022-06-28 18:42 UTC (permalink / raw)
  To: Naresh Gurbuxani, emacs-orgmode@gnu.org

Naresh Gurbuxani <naresh_gurbuxani@hotmail.com> writes:

> In my windows computer, R is installed at c:/Program Files/Microsoft/R Open/R-3.5.1/bin
>
> Notice two spaces: “Program Files” and “R Open”
>
> How can I set the variable org-babel-R-command?
>
> I tried
> (setq org-babel-R-command “c:/Progra~1/Microsoft/R Open/R-3.5.1/bin/R.exe —slave —no-save”)
>
> But the space between R and Open is a problem.  What is the solution?

Maybe this will work (quoting the path between "):

  (setq org-babel-R-command “\"c:/Progra~1/Microsoft/R Open/R-3.5.1/bin/R.exe\" —slave —no-save”)


  
>
> Thanks,
> Naresh
>
> Sent from my iPhone


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-babal-R-command
       [not found] ` <8d5a82ef-d444-4820-8a63-5544ec60bab4@HE1EUR02FT064.eop-EUR02.prod.protection.outlook.com>
@ 2022-06-28 19:01   ` Naresh Gurbuxani
  0 siblings, 0 replies; 4+ messages in thread
From: Naresh Gurbuxani @ 2022-06-28 19:01 UTC (permalink / raw)
  To: Bruno Barbier; +Cc: emacs-orgmode@gnu.org

It works!  You made my day.

Thanks,
Naresh

Sent from my iPhone

> On Jun 28, 2022, at 2:40 PM, Bruno Barbier <brubar.cs@gmail.com> wrote:
> 
> Naresh Gurbuxani <naresh_gurbuxani@hotmail.com> writes:
> 
>> In my windows computer, R is installed at c:/Program Files/Microsoft/R Open/R-3.5.1/bin
>> 
>> Notice two spaces: “Program Files” and “R Open”
>> 
>> How can I set the variable org-babel-R-command?
>> 
>> I tried
>> (setq org-babel-R-command “c:/Progra~1/Microsoft/R Open/R-3.5.1/bin/R.exe —slave —no-save”)
>> 
>> But the space between R and Open is a problem.  What is the solution?
> 
> Maybe this will work (quoting the path between "):
> 
>  (setq org-babel-R-command “\"c:/Progra~1/Microsoft/R Open/R-3.5.1/bin/R.exe\" —slave —no-save”)
> 
> 
> 
>> 
>> Thanks,
>> Naresh
>> 
>> Sent from my iPhone

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-30  8:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-28 12:54 org-babal-R-command Naresh Gurbuxani
2022-06-28 18:42 ` org-babal-R-command Bruno Barbier
     [not found] ` <8d5a82ef-d444-4820-8a63-5544ec60bab4@HE1EUR02FT064.eop-EUR02.prod.protection.outlook.com>
2022-06-28 19:01   ` org-babal-R-command Naresh Gurbuxani
  -- strict thread matches above, loose matches on Subject: below --
2022-06-28 13:03 org-babal-R-command Payas Relekar

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).