closed filehandle in install.R