Can you try options(error = recover) to see what line in install.packages() is failing?
A) Sorry.. I couldn't understand what above question means.
Also, please translate the error messages or change the locale to English before running the command.
A) Error in install.packages : TRUE/FALSE가 필요한 곳에 값이 없습니다
translate : Error in install.packages : missing value where TRUE/FALSE needed.