Let $R$ be a commutative ring and let $M,N$ be free modules over $R$ and suppose we have a map $f: M \rightarrow N$ such that upon taking $\text{ Hom}(-,R)$ we get an isomorphism $f^* : N^* \rightarrow M^*.$ Must $f$ be an isomorphism as well?
This is clear if $M,N$ are free and of finite dimension, since then double dualization can be applied. But in general, what is true?
Edit. In the comments egreg has sketched an example which seems fine. This seems to involve cardinality issues, so what happens if I assume that $M$ and $N$ are both countably generated?