Make sure you have the GLPK C library installed. This is not the same as the Rglpk R package. Instructions for installing libraries for Rtools4 on Windows arehere, see in particular the "Using pacman" link. You will find a copyable pacman command for installing all dependencieshere. More ...