all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Seeing all the steps when I run an R code block
@ 2022-11-14  3:20 William Denton
  2022-11-15  2:07 ` Ihor Radchenko
  2024-04-09 13:03 ` Ihor Radchenko
  0 siblings, 2 replies; 10+ messages in thread
From: William Denton @ 2022-11-14  3:20 UTC (permalink / raw)
  To: emacs-orgmode

I've got a few problems with R source blocks that I can't figure out.  They 
started late last month, I think.  I'm running Emacs and Org from the 
development trees, refreshing and recompiling regularly.  ESS (the package for 
working with R) is up to date too.

Here's one big problem.  I have a file, /home/wtd/books/reading/test-r.org, and 
in it is this R block:

# -----

#+begin_src R :session R:testing :results value
1
#+end_src

# -----

If I execute that with C-c C-c, the R session buffer starts, but in the wrong 
working directory.  This is in the R session buffer, reported by ESS:

# -----

> setwd('/home/wtd/books')

# -----

It's in the directory *above* where the Org file is!  It should be in 
/home/wtd/books/reading/.

I copied the test file to /tmp/r/test/, and it's fine there.  The session's 
working directory is /tmp/r/test/, not /tmp/r/.

Something strange is going on, but I can't see why.  Is there some way I can 
see all the steps that are happening when I hit C-c C-c on that code block?  Or 
maybe there's some other way to figure it out?  Any suggestions welcome.

Thanks,

Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada


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

end of thread, other threads:[~2024-04-10 12:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-14  3:20 Seeing all the steps when I run an R code block William Denton
2022-11-15  2:07 ` Ihor Radchenko
2022-11-22 20:58   ` William Denton
2022-11-23 11:15     ` Ihor Radchenko
2022-11-27 11:38       ` Jeremie Juste
2022-11-27 11:52         ` Ihor Radchenko
2022-11-27 16:02           ` Jeremie Juste
2024-04-09 13:03 ` Ihor Radchenko
2024-04-09 23:49   ` William Denton
2024-04-10 12:48     ` Ihor Radchenko

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.