Error while installation of devtools in R studio

v
I am trying to install devtools in my Rstudio that is the latest version.

I get a loop of error,If i solve the first, it shows second and If I solve that, it shows the first one again.
How to solve please help. here are the two errors.

  1. install.packages("C:/Users/XXXX/AppData/Local/Temp/Rtmp8IB0zw/downloaded_packages/devtools_2.3.0.zip", repos = NULL)
    Installing package into ‘C:/Users/ASPC/Documents/R/win-library/4.0’
    (as ‘lib’ is unspecified)
    package ‘devtools’ successfully unpacked and MD5 sums checked

if i fix this, then it shows the following error

  1. package ‘devtools’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\XXXX\AppData\Local\Temp\Rtmp8IB0zw\downloaded_packages

You are not showing any error messages, just normal installation messages, can you explain what is your problem with this? Are you able to load the package with library(devtools)? Do you get any error message?

I am attaching a screenshot, hope it would be more clear now.

moreover, this is what I get.

WHEN I RUN THIS COMMAND:

install.packages("devtools", lib = "C:/Users/XXXX/AppData/Local/Temp/Rtmp8IB0zw/downloaded_packages")

I GET THIS ERROR:

Warning in install.packages :
'lib = "C:/Users/XXX/AppData/Local/Temp/Rtmp8IB0zw/downloaded_packages"' is not writable
Error in install.packages : unable to install packages

IF I RUN THIS COMMAND:

installed.packages("devtools")

I AM GETTING THIS ERROR

 Package LibPath Version Priority Depends Imports LinkingTo Suggests Enhances
 License License_is_FOSS License_restricts_use OS_type Archs MD5sum
 NeedsCompilation Built

x3pUytLHmnEnni7VwRg.png) ![3|690x117]

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.