Hi Kevin.
I think use of PopGenome should be -strongly- discouraged because it has been discontinued and removed from CRAN. If you need it it can still be installed on some systems (Linux x86 and Intel Mac) but not on others e.g. Silicon Macs. You won't have a chance to build it with a modern compiler, e.g. clang either (or if you do, please post a patch).
The only way to reliably install it via bioconda into a dedicated environment, like so (and exactly so):
conda create -c bioconda -c conda-forge -n popgenome2 r-popgenome=2.7.2
This will give you r-base 3.6.3 and popgenome 2.7.2. This is the most stable combination I have found. Do not try to install any other R-packages e.g. ggplot2 into that environment to leave versions unchanged.
Your method won't work on a recent R giving the error message:
Warning message:
package ‘PopGenome’ is not available for Bioconductor version '3.22'
Anyway, PopGenome afaik wasn't a Bioconductor package. It would be better to rewrite the whole package in a good way because it has some other problems but its functionality was quite useful. Still I think it should not be used by anyone anymore because it may create irreproducible analyses.
Have you found a solution to this yet? I am having the same issue!
"cannot find path
A bit late here, but for anyone reading this, this error likely comes from having a space in your filename.