在几个包中,最近matlib
在 github 上的包https://github.com/friendly/matlib我有一个 README.{md,Rmd} 文件,上面写着类似
现在有一小部分小插曲可供使用。用
browseVignettes("matlib")
来看他们。
我想在 README 中用小插图名称及其标题列表替换或添加此内容。
在 README 中,我最接近我想要的信息的结果> vignette(package= "matlib")
如下所示:
Vignettes in package ‘matlib’:
eigen-ex1 Eigenvalues and Eigenvectors: Properties
(source, html)
eigen-ex2 Eigenvalues: Spectral Decomposition (source,
html)
det-ex2 Evaluation of determinants (source, html)
ginv Generalized inverse (source, html)
gramreg Gram-Schmidt Orthogonalization and Regression
(source, html)
inv-ex1 Inverse of a matrix (source, html)
inv-ex2 Matrix inversion by elementary row operations
(source, html)
det-ex1 Properties of determinants (source, html)
linear-equations Solving Linear Equations (source, html)
但是我想在一个块中捕获这个结果,或者我可以直接在 README 中使用。如果我使用 构建包站点pkgdown
,我会在 **Articles* 下获得指向小插图的链接,但我仍然没有可以直接使用的小插图名称和标题列表。