Spent a couple of seconds looking at this and have a couple of
questions. Once I have answers it should take me only a couple of
minutes to give you something to test.
Does the source URL for CRAN not have any kind of file extension?
Could you provide a couple of sample packages for me to look at and use
in testing? I don't know much of anything about R.