Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/64.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R软件包Google表单默认浏览器更改_R_Google Sheets - Fatal编程技术网

R软件包Google表单默认浏览器更改

R软件包Google表单默认浏览器更改,r,google-sheets,R,Google Sheets,当我跑的时候 #get the library library(googlesheets) #initialize token gs_auth(new_user = TRUE) 它总是打开我的firebox浏览器,但是,我希望它打开我的chrome浏览器,有没有办法更改默认打开的浏览器 顺便说一下,我的操作系统是Windows7 R版本3.3.3 googlesheets版本0.3.0您可以使用选项browser=/path/to/executable设置从R会话启动哪个浏览器。要在windo

当我跑的时候

#get the library
library(googlesheets)
#initialize token
gs_auth(new_user = TRUE)
它总是打开我的firebox浏览器,但是,我希望它打开我的chrome浏览器,有没有办法更改默认打开的浏览器

顺便说一下,我的操作系统是Windows7 R版本3.3.3
googlesheets版本0.3.0

您可以使用选项browser=/path/to/executable设置从R会话启动哪个浏览器。要在windows上启动Chrome浏览器,可能需要执行以下操作:

options(browser = "C:/Program Files/Google/Chrome/Application/chrome.exe")

注意:相同的命令可用于指定启动闪亮应用程序的浏览器,例如,请参见

您使用的是什么操作系统?@sindri_baldur it is is windows 7Maybe Firefox是系统的默认浏览器?您可以检查/更改默认浏览器吗@Ronak Shah我设置了它,不幸的是,这并不能解决我目前的问题谢谢!对了,你能解释一下为什么一开始总是firefox吗?即使我把系统默认浏览器改成了chrome?我检查了R中的初始浏览器选项,它不是firefox,但是如果没有您的新设置,它总是转到firefox,谢谢!?utils::browseURL的详细信息部分可能有助于解释默认浏览器行为。临时更改gs_auth默认浏览器的另一个链接: