Re: launch help.start() in EWW browser
"Sparapani, Rodney via ESS-help" <[email protected]> Fri, 19 Sep 2025 18:32:45 +0000
| Newsgroups | gmane.emacs.ess.general |
|---|---|
| Message-ID | <BN8PR01MB5537FA4BA0FB8C3A3A6FC202CB11A@BN8PR01MB5537.prod.exchangelabs.com> |
--===============2632631960551066905==
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-length: 1004
Hi Tyler:
Almost! That code has a stray comment in the last line. But I=92ve tested
this and it works on both macOS and Linux=85.
(defun ess-eww ()
(interactive)
(let ((BUF (generate-new-buffer "URL"))
(PORT))
(ess-command "print(tools::startDynamicHelp(NA))" BUF)
(with-current-buffer BUF
(setq PORT (buffer-substring (search-forward-regexp "\\[1\\] ")
(point-max)))
(message (buffer-substring (point-min) (point-max))))
(kill-buffer BUF)
(eww (concat "http://127.0.0.1:" PORT "/doc/html/index.html"))))
N.B. the second to last string might be transformed into a URL rather than =
text.
So, here I am escaping it by substituting all-CAPS for those who need that.=
..
"HTTP://127.0.0.1:"
--
Rodney Sparapani, Associate Professor of Biostatistics
Director, Wisconsin Chapter of the American Statistical Association
Division of Biostatistics, Data Science Institute
Medical College of Wisconsin, Milwaukee Campus
[[alternative HTML version deleted]]
--===============2632631960551066905==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
--===============2632631960551066905==--