Install Rtools in another location and Rstudio shows "Rtools is required to build R packages"

Hello, I installed Rtools in D driver so Rstudio show "Rtools is required to build R packages". I need add Rtools Path to Rstdio. How should I do? May you be patient, for I am a newbie for R language. Thanks.