I have run the following
remove.packages("data.table")
install.packages("data.table", type = "source",
repos = "https://Rdatatable.gitlab.io/data.table")
And have done the steps as suggested by data.table/wiki/Installation
The following is the output I got
````
Installing package into ‘/Users/lzhan/R’
(as ‘lib’ is unspecified)
trying URL 'https://Rdatatable.gitlab.io/data.table/src/contrib/data.table_1.12.9.tar.gz'
downloaded 5.0 MB
[1] "en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8"
The downloaded source packages are in
‘/private/var/folders/qz/0srg88cd2459h1cbn623wrt00000gq/T/RtmpYalyyw/downloaded_packages’
Warning message:
In install.packages("data.table", type = "source", repos = "https://Rdatatable.gitlab.io/data.table") :
installation of package ‘data.table’ had non-zero exit status
````
# Output of sessionInfo()
R version 4.0.0 (2020-04-24)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Mojave 10.14.6
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.0.0 tools_4.0.0
Thanks for the report. I'm afraid at the moment it's a bit unreadable.
@likanzhan can you add the _full_ output of your installation log to the issue body?
I was facing the same problems as you and tried all methods as mentioned in #4435, #4348 and #4158.
For me, the solution was to follow the wiki to install a LLVM compiler with openMP support. However, instead of installing the data.table package using
remove.packages("data.table")
install.packages("data.table", type = "source",
repos = "https://Rdatatable.gitlab.io/data.table")
I defaulted to using the standard repo, i.e.,
install.packages("data.table", type = "source")
which will install data.table version 1.12.8 instead of 1.12.9. I don't know exactly why this works but it does the job for me. Maybe @MichaelChirico knows how this could possibly make a difference?
@markkvdb thx, after many futile attempts your quick-fix worked for me too
@sorhawell and @markkvdb ,
I think the real problem is that we want to install the new version, i.e., 1.12.9, not the old one.
@likanzhan The title refers to the latest version of data.table. Version 1.12.9 is the latest unreleased version, while 1.12.8 is the latest released version. So, my contribution above is for people who want a recent (or latest) version of data.table that works on MacOS.
If you happen to find a solution to the problem many users are facing with installing version 1.12.9 then feel free to share it.
@likanzhan The title refers to the latest version of
data.table. Version1.12.9is the latest unreleased version, while1.12.8is the latest released version. So, my contribution above is for people who want a recent (or latest) version ofdata.tablethat works on MacOS.If you happen to find a solution to the problem many users are facing with installing version
1.12.9then feel free to share it.
I do not have a solution, and that is the reason why I open this issue.
Facing a similar problem previously and tried both llvm and gcc ...
Finally found an available issue @likanzhan
https://github.com/Rdatatable/data.table/issues/4574
Hope it can help you as well!
Facing a similar problem previously and tried both llvm and gcc ...
Finally found an available issue @likanzhan4574
Hope it can help you as well!
This worked for me; thank you very much for the link!
@likanzhan could you try on recent data.table version? There have been improvements added in 1.13.2 for installation on Mac so you may now be able to install 1.13.3. If you still have problems you may also consult working examples of makevars in https://github.com/Rdatatable/data.table/issues/4348
Thanks, @jangorecki
It seems working now.
I first run:
install.packages("data.table", type = "source",
repos = "https://Rdatatable.gitlab.io/data.table")
library(data.table)
And I got the following information:
data.table 1.13.3 IN DEVELOPMENT built 2020-11-13 08:27:45 UTC; root using 4 threads (see ?getDTthreads). Latest news: r-datatable.com
@likanzhan thanks for update
Most helpful comment
I was facing the same problems as you and tried all methods as mentioned in #4435, #4348 and #4158.
For me, the solution was to follow the wiki to install a LLVM compiler with openMP support. However, instead of installing the data.table package using
I defaulted to using the standard repo, i.e.,
which will install data.table version 1.12.8 instead of 1.12.9. I don't know exactly why this works but it does the job for me. Maybe @MichaelChirico knows how this could possibly make a difference?