Hey,
Sorry for the delayed response over the weekend.
I did add a line similar to what you have indicated in the Renviron.site file. When that did not work, this is what solved my problem.
I uninstalled JRE (both 32 and 64 bit)
The installed
- JDK (32 and 64 bit)
- JRE again (32 and 64 bit)
in that order (i.e., JDK first, then JRE. Not sure if the order matters though)
But after doing this rJava was able to load and I was able to install the other two packages as well.
From my understanding, the issue was not installing JDK and only installing JRE. This is because once I installed JDK, with out explicitly adding any path variables (either in windows global variables, or Renviron.site) the rJava worked and my other packages also installed.
Not sure if that was a coincidence, or that solved the issue (If anyone can clarify if my assumption is right or wrong that would be great for me and for others in the same situation).
I will only be able to validate this the next time I go through reinstalling R and all the libraries.
Thanks for your help @andresrcs
.