Skip to content

Instantly share code, notes, and snippets.

@josephcoombe
Created July 20, 2020 22:21
Show Gist options
  • Save josephcoombe/05c1262e1adabe75ad53ca18321dca98 to your computer and use it in GitHub Desktop.
Save josephcoombe/05c1262e1adabe75ad53ca18321dca98 to your computer and use it in GitHub Desktop.
List R Packages and Licenses Batch File
@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