Re: [R-SIG-Mac] multithreading package failure?
Jan, it fails due to timeout (i.e. the build gets killed after 30 minutes which is why you don't see any further output). So could it be that your example just take too long to finish? If it helps, this is the tail of the output: $ tail ruimtehol-Ex.Rout + dim = 25, epoch = 25, minCount = 2, + negSearchLimit = 1, maxNegSamples = 2) Start to initialize starspace model. Build dict from input file : /tmp/RtmptpPQy0/textspace_14cc02e34905e.txt Read 0M words Number of words in dictionary: 1274 Number of labels in dictionary: 0 Loading data from file : /tmp/RtmptpPQy0/textspace_14cc02e34905e.txt Total number of examples loaded : 470 2019-06-23 12:40:46 Initialising with learning rate 0.01 Cheers, Simon > On Jun 24, 2019, at 8:11 AM, Jan Wijffels wrote: > > Dear r-sig-mac mailing list, > > I don't own a Mac but I'm the maintainer of the ruimtehol R package which > FAILS on CRAN on Mac only (see logs at > https://cran.r-project.org/web/checks/check_results_ruimtehol.html) > I would like to get rid of the FAIL note on CRAN but I'm a bit stabbing in > the dark about how as there is not a lot of information on the check page > on the reason of failure. > The package is developped at https://github.com/bnosac/ruimtehol and > probably the failure is due to multi-threading as the only 2 things which > are different on MacOS is the code at > https://github.com/bnosac/ruimtehol/blob/da1cd4da6bbcc6a7cc4c346989e8476f37864091/src/Starspace/src/model.cpp#L31 > and at > https://github.com/bnosac/ruimtehol/blob/da1cd4da6bbcc6a7cc4c346989e8476f37864091/src/Starspace/src/model.cpp#L38 > > > Currently R package ruimtehol apparently has been built fine at least > once on CRAN as a Mac OS a binary is available at > https://CRAN.R-project.org/package=ruimtehol > Also R CMD check ran today on 2019/06/24 on rhub running Mac OS runs fine > as shown in the log at > https://builder.r-hub.io/status/ruimtehol_0.2.1.tar.gz-98f98671fd5fe78842e5bf463f1fe05c, > which makes me wonder what is the differences in compiler setup regarding > rhub and CRAN on Mac OS? > > A user of the package has managed to get the package working as shown at > issue https://github.com/bnosac/ruimtehol/issues/10#issuecomment-458311181 > He basically did change the compiler he used, namely did brew install llvm > and then fixed his compiler setup as follows > > CC=/usr/local/opt/llvm/bin/clang #-fopenmp > CXX=/usr/local/opt/llvm/bin/clang++ #-fopenmp > CFLAGS=-g -O3 -Wall -pedantic -std=gnu99 -mtune=native -pipe > CXXFLAGS=-g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe > LDFLAGS=-L/usr/local/opt/gettext/lib -L/usr/local/opt/llvm/lib > -Wl,-rpath,/usr/local/opt/llvm/lib > CPPFLAGS=-I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include > > > The Makevars in the package looks like this > > CXX_STD = CXX11 > PKG_LIBS = -pthread > PKG_CPPFLAGS = -pthread -DSTRICT_R_HEADERS -DBOOST_NO_AUTO_PTR -include > compliance.h -I./Starspace/src > > > Does anyone has a suggestion on what causes the failure of the package on > Mac OS? > > Jan > > Jan Wijffels > Statistician > www.bnosac.be | +32 486 611708 > > [[alternative HTML version deleted]] > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
[R-SIG-Mac] multithreading package failure?
Dear r-sig-mac mailing list, I don't own a Mac but I'm the maintainer of the ruimtehol R package which FAILS on CRAN on Mac only (see logs at https://cran.r-project.org/web/checks/check_results_ruimtehol.html) I would like to get rid of the FAIL note on CRAN but I'm a bit stabbing in the dark about how as there is not a lot of information on the check page on the reason of failure. The package is developped at https://github.com/bnosac/ruimtehol and probably the failure is due to multi-threading as the only 2 things which are different on MacOS is the code at https://github.com/bnosac/ruimtehol/blob/da1cd4da6bbcc6a7cc4c346989e8476f37864091/src/Starspace/src/model.cpp#L31 and at https://github.com/bnosac/ruimtehol/blob/da1cd4da6bbcc6a7cc4c346989e8476f37864091/src/Starspace/src/model.cpp#L38 Currently R package ruimtehol apparently has been built fine at least once on CRAN as a Mac OS a binary is available at https://CRAN.R-project.org/package=ruimtehol Also R CMD check ran today on 2019/06/24 on rhub running Mac OS runs fine as shown in the log at https://builder.r-hub.io/status/ruimtehol_0.2.1.tar.gz-98f98671fd5fe78842e5bf463f1fe05c, which makes me wonder what is the differences in compiler setup regarding rhub and CRAN on Mac OS? A user of the package has managed to get the package working as shown at issue https://github.com/bnosac/ruimtehol/issues/10#issuecomment-458311181 He basically did change the compiler he used, namely did brew install llvm and then fixed his compiler setup as follows CC=/usr/local/opt/llvm/bin/clang #-fopenmp CXX=/usr/local/opt/llvm/bin/clang++ #-fopenmp CFLAGS=-g -O3 -Wall -pedantic -std=gnu99 -mtune=native -pipe CXXFLAGS=-g -O3 -Wall -pedantic -std=c++11 -mtune=native -pipe LDFLAGS=-L/usr/local/opt/gettext/lib -L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib CPPFLAGS=-I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include The Makevars in the package looks like this CXX_STD = CXX11 PKG_LIBS = -pthread PKG_CPPFLAGS = -pthread -DSTRICT_R_HEADERS -DBOOST_NO_AUTO_PTR -include compliance.h -I./Starspace/src Does anyone has a suggestion on what causes the failure of the package on Mac OS? Jan Jan Wijffels Statistician www.bnosac.be | +32 486 611708 [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] point size in svg
Works fine for me on 10.14.5, both with CRAN-supplied 3.6.0 and locally compiled 3.6.0 Patched (2019-06-23 r76734). I suspect that you might have a font misconfiguration of sorts on your Mojave machine. -pd > On 24 Jun 2019, at 09:25 , Spencer Graves wrote: > > �� Thanks to David Winsemius for his reply.� His attachment came > through and displayed consistent with the R documentation.� Thus, the > cex.axis and cex arguments work fine with R 3.5.1 (2018-07-02) and > "Feather Spray" on OS X 10.11.6, but they don't work properly with the > current version of R under the current version of macOS. > > > �� Spencer > > > On 2019-06-24 00:59, David Winsemius wrote: >>> On Jun 23, 2019, at 10:04 PM, Spencer Graves >>> wrote: >>> >>> Hello, All: >>> >>> >>> I'm unable to control font size in plots created by "svg" in R 3.6.0 >>> on macOS Mojave 10.14.5. Consider the following: >>> >>> >>> svg('cex-svg.svg') >>> cex. <- 5 >>> plot(1:2, cex.axis=cex.) >>> text(1:2, 1:2, c('as', 'DF'), >>> cex=cex.) >>> dev.off() >>> >>> >>> When I run this in R 3.5.2 under Windows 7, it works fine. In R >>> 3.6.0 under macOS 10.14.5, I get tiny fonts. Changing "cex." has no impact >>> on the result. A question about this to R-Devel generated replies from >>> Peter Langfelder and David Winsemius, who noted that it worked fine under >>> Ubuntu 18.04 (supposedly with R 3.15.2 -- probably R 3.5.2, but I'm not >>> sure). >> You should be sure. >> >>> I experimented with the width, height, pointsize and family arguments for >>> "svg", without solving this problem. >> With R version 3.5.1 (2018-07-02) -- "Feather Spray" on OS X 10.11.6 I am >> unable to reproduce. My Mac hardware is considered well past (Apple) end of >> life despite its functionality, so I cannot upgrade my OS. I'm attaching the >> file that is the result so Spencer can view it, although I suspect it will >> be scrubbed by the mail-server. >> >> >> > > > [[alternative HTML version deleted]] > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] point size in svg
� Thanks to David Winsemius for his reply.� His attachment came through and displayed consistent with the R documentation.� Thus, the cex.axis and cex arguments work fine with R 3.5.1 (2018-07-02) and "Feather Spray" on OS X 10.11.6, but they don't work properly with the current version of R under the current version of macOS. � Spencer On 2019-06-24 00:59, David Winsemius wrote: >> On Jun 23, 2019, at 10:04 PM, Spencer Graves >> wrote: >> >> Hello, All: >> >> >>I'm unable to control font size in plots created by "svg" in R 3.6.0 >> on macOS Mojave 10.14.5. Consider the following: >> >> >> svg('cex-svg.svg') >> cex. <- 5 >> plot(1:2, cex.axis=cex.) >> text(1:2, 1:2, c('as', 'DF'), >>cex=cex.) >> dev.off() >> >> >>When I run this in R 3.5.2 under Windows 7, it works fine. In R >> 3.6.0 under macOS 10.14.5, I get tiny fonts. Changing "cex." has no impact >> on the result. A question about this to R-Devel generated replies from >> Peter Langfelder and David Winsemius, who noted that it worked fine under >> Ubuntu 18.04 (supposedly with R 3.15.2 -- probably R 3.5.2, but I'm not >> sure). > You should be sure. > >> I experimented with the width, height, pointsize and family arguments for >> "svg", without solving this problem. > With R version 3.5.1 (2018-07-02) -- "Feather Spray" on OS X 10.11.6 I am > unable to reproduce. My Mac hardware is considered well past (Apple) end of > life despite its functionality, so I cannot upgrade my OS. I'm attaching the > file that is the result so Spencer can view it, although I suspect it will be > scrubbed by the mail-server. > > > [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] point size in svg
> On Jun 23, 2019, at 10:04 PM, Spencer Graves > wrote: > > Hello, All: > > > I'm unable to control font size in plots created by "svg" in R 3.6.0 on > macOS Mojave 10.14.5. Consider the following: > > > svg('cex-svg.svg') > cex. <- 5 > plot(1:2, cex.axis=cex.) > text(1:2, 1:2, c('as', 'DF'), > cex=cex.) > dev.off() > > > When I run this in R 3.5.2 under Windows 7, it works fine. In R 3.6.0 > under macOS 10.14.5, I get tiny fonts. Changing "cex." has no impact on the > result. A question about this to R-Devel generated replies from Peter > Langfelder and David Winsemius, who noted that it worked fine under Ubuntu > 18.04 (supposedly with R 3.15.2 -- probably R 3.5.2, but I'm not sure). You should be sure. > I experimented with the width, height, pointsize and family arguments for > "svg", without solving this problem. With R version 3.5.1 (2018-07-02) -- "Feather Spray" on OS X 10.11.6 I am unable to reproduce. My Mac hardware is considered well past (Apple) end of life despite its functionality, so I cannot upgrade my OS. I'm attaching the file that is the result so Spencer can view it, although I suspect it will be scrubbed by the mail-server. -- David. > > > I believe this problem is fairly recent: I just looked at svg files I > created with R on this same computer probably last fall, and the font size > looks reasonable -- better than what I get today. I'm not 100 percent sure, > but I think I was able to control the font size with the cex and cex.axis > arguments with those earlier versions of R and macOS. > > > Suggestions? > Thanks, > Spencer Graves > > > # This script worked as expected on Windows: > sessionInfo() > R version 3.5.2 (2018-12-20) > Platform: x86_64-w64-mingw32/x64 (64-bit) > Running under: Windows 7 x64 (build 7601) Service Pack 1 > > Matrix products: default > > locale: > [1] LC_COLLATE=English_United States.1252 > [2] LC_CTYPE=English_United States.1252 > [3] LC_MONETARY=English_United States.1252 > [4] LC_NUMERIC=C > [5] LC_TIME=English_United States.1252 > > attached base packages: > [1] stats graphics grDevices utils datasets > [6] methods base > > loaded via a namespace (and not attached): > [1] compiler_3.5.2 tools_3.5.2yaml_2.2.0 > > > # It failed on macOS: > > >>> sessionInfo() >>> R version 3.6.0 (2019-04-26) >>> Platform: x86_64-apple-darwin15.6.0 (64-bit) >>> Running under: macOS Mojave 10.14.5 >>> >>> Matrix products: default >>> BLAS: >>> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib >>> LAPACK: >>> /Library/Frameworks/R.framework/Versions/3.6/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 >>> [6] methods base >>> >>> other attached packages: >>> [1] Ecdat_0.3-2 Ecfun_0.2-1 >>> >>> __ >>> r-de...@r-project.org mailing list >>> https://stat.ethz.ch/mailman/listinfo/r-devel >> >> __ >> r-de...@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-devel >> > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac David Winsemius Alameda, CA, USA 'Any technology distinguishable from magic is insufficiently advanced.' -Gehm's Corollary to Clarke's Third Law ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac