查找给定程序包定义的所有选项 [英] Find all options defined by a given package

查看:78
本文介绍了查找给定程序包定义的所有选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以找到给定程序包定义的所有选项?或者,是否有必要在加载软件包之前和之后采取不同的选择?

Is it possible to find all the options defined by a given package? Or, is it necessary to take the difference in options before and after loading a package?

推荐答案

第一个问题:

.Options显示当前设置的所有选项.如果要查找某个软件包的软件包,可以grep在软件包名称中包含软件包名称的选项.例如dplyr:

.Options shows all the options currently set. If you'd like to find those of a certain package, you could grep the options with the name of the package in the option name. For example for dplyr:

.Options[grep('dplyr', names(.Options))]

给予

$dplyr.strict_sql
[1] FALSE

$dplyr.print_min
[1] 10

$dplyr.print_max
[1] 20

$dplyr.show_progress
[1] TRUE

我不确定这是否适用于所有软件包.

I'm not sure if this will work with all packages.

这篇关于查找给定程序包定义的所有选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆