Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view package license file?

I have a package called my_pkg and in my DESCRIPTION file I've declared my license as License: file LICENSE.

Another question suggested using packageDescription to call the license, but that yields the following:

> packageDescription('my_pkg', fields = 'License')
"file LICENSE"

Any ideas how to proceed? I've checked CRAN and Hadley's R Packages book to no avail.

like image 950
nev Avatar asked Jul 28 '16 20:07

nev


People also ask

How do I read an Autodesk license file?

Use the License File Parser to view feature codesGo to the License File Parser. Click Choose File to browse to your license file. Select the license file and click Open.

Where are license files stored?

License files are stored in the "licenses" folder within the MATLAB installation folder.

How to find license file in linux?

The license directory (based on a default installation) for ENVI versions 4.8 and above as well as IDL versions 8.0 and above: Windows: C:\Program Files\exelis\license. Macintosh: /Applications/exelis/license. UNIX/Linux: /usr/local/exelis/license.


1 Answers

I think

file.show(system.file("LICENSE",package="my_pkg"))

should work (it works for the ggalt package). It won't work if there is no LICENSE file, of course ...

like image 152
Ben Bolker Avatar answered Sep 21 '22 23:09

Ben Bolker