如何查看包许可证文件?
How to view package license file?
我有一个名为 my_pkg
的包,在我的 DESCRIPTION
文件中,我已将我的许可证声明为 License: file LICENSE
。
Another question suggested using packageDescription
to call the license,但这会产生以下结果:
> packageDescription('my_pkg', fields = 'License')
"file LICENSE"
对如何进行有任何想法吗?我检查了 CRAN and Hadley's R Packages book 无济于事。
我觉得
file.show(system.file("LICENSE",package="my_pkg"))
应该有效(它适用于 ggalt
包)。没有LICENSE
文件就不行,当然...
我有一个名为 my_pkg
的包,在我的 DESCRIPTION
文件中,我已将我的许可证声明为 License: file LICENSE
。
Another question suggested using packageDescription
to call the license,但这会产生以下结果:
> packageDescription('my_pkg', fields = 'License')
"file LICENSE"
对如何进行有任何想法吗?我检查了 CRAN and Hadley's R Packages book 无济于事。
我觉得
file.show(system.file("LICENSE",package="my_pkg"))
应该有效(它适用于 ggalt
包)。没有LICENSE
文件就不行,当然...