I can't install DPpackage in R

I try to install the DPpackage in R but is not available for R version 4.0.2. However, I made a search and I found out that it was removed from Cran then I get it as a zip file so tried to install it again but now I get this error

  • installing source package 'DPpackage' ...
    ** package 'DPpackage' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs

*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'DPpackage'

  • removing 'C:/Users/ASUS/Documents/R/win-library/4.0/DPpackage'
    Warning message:
    In install.packages(files[tarballs], .libPaths()[1L], repos = NULL, :
    installation of package ‘C:/Users/ASUS/Downloads/DPpackage_1.1-7.4.tar.gz’ had non-zero exit status

I need immediate help, please

I suspect you don't have Rtools40 for 32-bits installed in your system (or you haven't configured it properly) but I can't be sure since you haven't posted the complete error message.

I had installed Rtools40 in (C:\program file\rtools40\), but the Path was not specified in RStudio so I wasn't able to install DPpackage
then I used this command in R to specify RTools Path

writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${C:\\program file\\rtools40}"', con = "~/.Renviron")

then I could install the package.
thank you.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.