Created
July 20, 2020 22:21
-
-
Save josephcoombe/05c1262e1adabe75ad53ca18321dca98 to your computer and use it in GitHub Desktop.
List R Packages and Licenses Batch File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal enableDelayedExpansion | |
set r_library_relative_path=R\library | |
echo %r_library_path% | |
for /d %%i in ("%~dp0%r_library_relative_path%\*") do ( | |
echo %%~nxi | |
findstr /b License: %%i\DESCRIPTION | |
echo. | |
) | |
:: Resist the urge to create a more complicated batch file | |
:: if more is needed, use Python... - Joseph Coombe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment