I'm glad you solved your problem, a little clarification though, you don't need the devtools package to compile packages from source, you only need to have RTools installed in your system and as long as the package is in CRAN you can just use install.packages().
devtools (or more specifically the underlying remotes package) is used to install packages from non CRAN sources or for installing specific versions.