Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
:: 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