Problem with install of R_commander

Loading required package: RcmdrMisc
Error: package or namespace load failed for ‘RcmdrMisc’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘xfun’
Error: package ‘RcmdrMisc’ could not be loaded

Install the missing package

install.packages("xfun")