Thank you very much for your reply.
You are right, those steps really didn't solve my problem. But the staff said that 'As being used of the R, there might need to install and update many third-party libraries and plugins. In order to be more flexible, you are to install the libraries in our HOME directory without any further permissions required'.
The strange thing is that after logging in with his personal account, he can successfully install the two R packages 'curl' and 'xml2'. I'm new to HPC and I'm wondering, aren't our configurations the same?