Install devtools on mac - installation of rtools on window

I am trying to install the package devtools on my mac. I downloaded Xcode but I am still unable to install devtools. I got this messages:

  • installing source package ‘zip’ ...
    ** package ‘zip’ successfully unpacked and MD5 sums checked
    ** libs
    /usr/local/clang4/bin/clang -Wall -g -O2 miniz.c zip.c unixutils.c tools/cmdzip.c -o tools/cmdzip
    In file included from miniz.c:27:
    ./miniz.h:156:10: fatal error: 'time.h' file not found
    #include <time.h>
    1 error generated.
    make: *** [tools/cmdzip] Error 1
    ERROR: compilation failed for package ‘zip’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/zip’
  • restoring previous ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/zip’
    Warning in install.packages :
    installation of package ‘zip’ had non-zero exit status
  • installing source package ‘brio’ ...

And the message continues like that...

I tried on my windows computer...
I installed Rtools40 as explained on this website: Using Rtools40 on Windows

I was even able to install the package as they ask to check : ```
install.packages("jsonlite", type = "source")

However, when I am running the check command to see if I have problems in my package, I obtained an error message which say:
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

Do you have any idea?

This topic was automatically closed 21 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.