Viewing Help Files Through RScript

Asked 1 years ago, Updated 1 years ago, 42 views

Thank you for your help.
I use R by typing RScript on Windows 7, R-3.1.2, VisualBasic.NET (.NET Framework 4.0).

At this time, to the RScript,

Rscript-e "help (print)"

When you run a help reference in , the browser goes to see http://127.0.0.1:21510/library/base/html/print.html

However, the HTML help displayed in R's GUI environment is a browser server error when running with RScript.

At first, I thought the port was strange, so I fixed it with reference to http://www.r-bloggers.com/force-r-help-html-server-to-always-use-the-same-url-port/, and the RGUI worked fine, but RScript went to the fixed port and got a server error.

I'd like to refer to the help file somehow, but is there any solution?

Thank you for your cooperation.

r rscript

2022-09-30 20:36

1 Answers

I'm a questioner.

As you advised in the comments,

options(help_type="html");help(print);Sys.sleep(1);

I was able to get the results as requested by sending to RScript.

However, running the -e option did not start the browser, so I was able to do so by writing the script to a temporary file and bypassing it.


2022-09-30 20:36

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.