楼主: zwcalick1989
7364 23

[问答] 为什么使用R的帮助打开的是网页还不是小窗口??求解释 [推广有奖]

21
zhcolin 在职认证  发表于 2013-9-24 00:37:09
R不同版本的帮助文件不一样,2.10.0及之前的版本,Help弹出一个小窗口;以后的版本则都会弹出网页。这个倒没有什么不方便,要命的是很多时候在没有载入这个函数的package的情况下,help某个函数,结果显示:找不到,这样使得R的魅力大打折扣。有没有人知道怎么完美使用R的帮助?

22
Bayesian.var 发表于 2013-9-25 23:36:43
For your second problem, the reason is R help providing 3 types of documents, "text", "html" and "pdf", in your case, I think the default setting is "html", that's why it always goes to the default explorer to open it.

The solution is simple and permanently:
1. Locate the Rprofile.site file, It should be in C:\Program Files\R\R-<version>\etc\Rprofile.site (on
Windows). # Here you can change the default options and you don't need to fix it every time.
2. Open the Rprofile.site file on text editor #notepad
3. Find the lines as follows, and in your case, it should looks like

# set the default help type
# options(help_type="text")
options(help_type="html")     

and now comment out html and un-comment text, like

# set the default help type
options(help_type="text")
# options(help_type="html")     

4. problem should be solved.

I use to type English as my computer in office room doesn't support Chinese.

23
Bayesian.var 发表于 2013-9-25 23:37:53
My final recommendation is Rstudio, the new free IDE for R users.   
I use to type English as my computer in office room doesn't support Chinese.

24
Bobo.. 发表于 2013-11-6 10:28:55
Bayesian.var 发表于 2013-9-25 23:36
For your second problem, the reason is R help providing 3 types of documents, "text", "html" and "pd ...
好棒!改好了方便多了!谢谢!!

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-31 03:05