Giter Site home page Giter Site logo

mhahsler / arulesviz Goto Github PK

View Code? Open in Web Editor NEW
53.0 8.0 15.0 31.74 MB

Visualizing Association Rules and Frequent Itemsets with R

Home Page: http://mhahsler.github.io/arulesViz/

R 82.93% TeX 17.07%
arules visualization frequent-itemsets interactive-visualizations cran association-rules r

arulesviz's People

Contributors

mhahsler avatar tylergiallanza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arulesviz's Issues

manage errors in shiny part

Hi Michael Hahslern,
thank you for your efforts to make association rules algorithms available in R with rich visualization techniques.
I used Arules and ArulViz packages many times and as I developed many shiny apps for the research tasks I faced some errors in my shiny interfaces related to the error management methods in arulesviz package the first is when there are no rules for selected itemsets, it return a stop message like this (x contains 0 rules!) for user experience is not good to show this red error especially it appear like (error:x contains 0 rules!)
if(length(x)<1) stop("x contains 0 rules!")
Maybe it will be good if it appears like this
validate( need(length(x)>1, "x contains 0 rules!") )
or
if (length(x)<1) { "x contains 0 rules!" }

ordering Y axis of paracoord plot

Hi..I want to order Y axis of paracoord plot of some rules in which lhs and rhs both have single item.
If I give reorder=TRUE then it is ordered automatically, but I want to order the itemsest in the y axis manually. Also I can't understand how it orders the itemsets on y axis when even reorder=FALSE.

I used the code to get the results in the image:
plot(rules, method = "paracoord",shading="confidence", control = list(main=paste("Rules in ", 1965, "_",1969,sep=""), col=rev(brewer.pal(9,"Purples"))))

Rplot43.pdf

I want to order the y axis in this format:
HERO PAIN TRNQ INHA ECST STIM HALU CRAC COCA MARI PCP METH SEDA LSD CIGA ALCO

Is there anyway to use arulesViz to visualize itemsets returned by opusminer?

Hello!

First of all, thank you so much for making arulesViz, it is a great package!

I know that I can use arulesViz to visualize itemsets returned by arules, but I'm wondering if I can make the same visualizations with itemsets returned by the opusminer package? From what I can see, opusminer returns list of itemsets quite similar in format to that returned by generatingItemsets(rules), but without the support parameter for each.

Thank you very much for any help!

hclust fails w/o minimum number of clusters

line
km <- cutree(hclust(dist(s_clust)), h=0)
fails with error
Error in hclust(dist(s_clust)) : must have n >= 2 objects to cluster
when a minimum number of rules are not available.

We run arules in an iterative script generating knitr reports and so sometimes the cut of the data simply isn't enough. Currently we just catch the error and fall back to inspect(rules), but it may make sense for the package to catch the error if there are less than 2 rules.

problems with Manjaro

Hi,
I failed to install arulesViz to my Manjaro OS.
There is failure info.

install.packages('arulesViz')
Installing package into ‘/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘httpuv’, ‘shiny’, ‘later’, ‘crosstalk’, ‘promises’, ‘DT’, ‘plotly’

trying URL 'https://cran.rstudio.com/src/contrib/httpuv_1.4.5.tar.gz'
Content type 'application/x-gzip' length 1675895 bytes (1.6 MB)

downloaded 1.6 MB

trying URL 'https://cran.rstudio.com/src/contrib/shiny_1.1.0.tar.gz'
Content type 'application/x-gzip' length 2350156 bytes (2.2 MB)

downloaded 2.2 MB

trying URL 'https://cran.rstudio.com/src/contrib/later_0.7.3.tar.gz'
Content type 'application/x-gzip' length 38192 bytes (37 KB)

downloaded 37 KB

trying URL 'https://cran.rstudio.com/src/contrib/crosstalk_1.0.0.tar.gz'
Content type 'application/x-gzip' length 563474 bytes (550 KB)

downloaded 550 KB

trying URL 'https://cran.rstudio.com/src/contrib/promises_1.0.1.tar.gz'
Content type 'application/x-gzip' length 106866 bytes (104 KB)

downloaded 104 KB

trying URL 'https://cran.rstudio.com/src/contrib/DT_0.4.tar.gz'
Content type 'application/x-gzip' length 857807 bytes (837 KB)

downloaded 837 KB

trying URL 'https://cran.rstudio.com/src/contrib/plotly_4.8.0.tar.gz'
Content type 'application/x-gzip' length 1860673 bytes (1.8 MB)

downloaded 1.8 MB

trying URL 'https://cran.rstudio.com/src/contrib/arulesViz_1.3-1.tar.gz'
Content type 'application/x-gzip' length 782748 bytes (764 KB)

downloaded 764 KB

  • installing source package ‘later’ ...
    ** package ‘later’ successfully unpacked and MD5 sums checked
    ** libs
    g++ -I"/usr/include/R/" -DNDEBUG -pthread -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include" -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c RcppExports.cpp -o RcppExports.o
    g++ -I"/usr/include/R/" -DNDEBUG -pthread -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include" -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c callback_registry.cpp -o callback_registry.o
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/mem_fn.hpp:25,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/mem_fn.hpp:22,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/bind.hpp:26,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind.hpp:22,
    from callback_registry.cpp:1:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/get_pointer.hpp:48:40: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    template T * get_pointer(std::auto_ptr const& p)
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/memory:80,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/get_pointer.hpp:14,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/mem_fn.hpp:25,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/mem_fn.hpp:22,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/bind.hpp:26,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind.hpp:22,
    from callback_registry.cpp:1:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:28,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.cpp:2:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/detail/shared_count.hpp:355:33: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    explicit shared_count( std::auto_ptr & r ): pi_( new sp_counted_impl_p( r.get() ) )
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/memory:80,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/get_pointer.hpp:14,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/mem_fn.hpp:25,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/mem_fn.hpp:22,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/bind.hpp:26,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind.hpp:22,
    from callback_registry.cpp:1:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.cpp:2:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:256:65: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/memory:80,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/get_pointer.hpp:14,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/mem_fn.hpp:25,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/mem_fn.hpp:22,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/bind.hpp:26,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind.hpp:22,
    from callback_registry.cpp:1:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.cpp:2:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:471:31: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    explicit shared_ptr( std::auto_ptr & r ): px(r.get()), pn()
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/memory:80,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/get_pointer.hpp:14,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/mem_fn.hpp:25,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/mem_fn.hpp:22,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/bind.hpp:26,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind.hpp:22,
    from callback_registry.cpp:1:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.cpp:2:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:484:22: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    shared_ptr( std::auto_ptr && r ): px(r.get()), pn()
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/memory:80,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/get_pointer.hpp:14,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/mem_fn.hpp:25,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/mem_fn.hpp:22,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/bind.hpp:26,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind.hpp:22,
    from callback_registry.cpp:1:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.cpp:2:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:567:34: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    shared_ptr & operator=( std::auto_ptr & r )
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/memory:80,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/get_pointer.hpp:14,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/mem_fn.hpp:25,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/mem_fn.hpp:22,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/bind.hpp:26,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind.hpp:22,
    from callback_registry.cpp:1:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.cpp:2:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:576:34: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    shared_ptr & operator=( std::auto_ptr && r )
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/memory:80,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/get_pointer.hpp:14,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/mem_fn.hpp:25,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/mem_fn.hpp:22,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/bind.hpp:26,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind.hpp:22,
    from callback_registry.cpp:1:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.cpp:2:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp: In member function ‘boost::shared_ptr& boost::shared_ptr::operator=(std::auto_ptr<Up>&&)’:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:578:38: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    this_type( static_cast< std::auto_ptr && >( r ) ).swap( *this );
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/memory:80,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/get_pointer.hpp:14,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/mem_fn.hpp:25,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/mem_fn.hpp:22,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/bind.hpp:26,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind.hpp:22,
    from callback_registry.cpp:1:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    gcc -I"/usr/include/R/" -DNDEBUG -pthread -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include" -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c init.c -o init.o
    g++ -I"/usr/include/R/" -DNDEBUG -pthread -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include" -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c later.cpp -o later.o
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/mem_fn.hpp:25,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/mem_fn.hpp:22,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/function/detail/prologue.hpp:18,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/function.hpp:30,
    from callback_registry.h:6,
    from later.cpp:6:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/get_pointer.hpp:48:40: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    template T * get_pointer(std::auto_ptr const& p)
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from later.cpp:2:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:28,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later.cpp:6:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/detail/shared_count.hpp:355:33: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    explicit shared_count( std::auto_ptr & r ): pi
    ( new sp_counted_impl_p( r.get() ) )
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from later.cpp:2:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later.cpp:6:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:256:65: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from later.cpp:2:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later.cpp:6:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:471:31: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    explicit shared_ptr( std::auto_ptr & r ): px(r.get()), pn()
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from later.cpp:2:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later.cpp:6:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:484:22: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    shared_ptr( std::auto_ptr && r ): px(r.get()), pn()
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from later.cpp:2:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later.cpp:6:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:567:34: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    shared_ptr & operator=( std::auto_ptr & r )
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from later.cpp:2:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later.cpp:6:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:576:34: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    shared_ptr & operator=( std::auto_ptr && r )
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from later.cpp:2:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later.cpp:6:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp: In member function ‘boost::shared_ptr& boost::shared_ptr::operator=(std::auto_ptr<Up>&&)’:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:578:38: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    this_type( static_cast< std::auto_ptr && >( r ) ).swap( *this );
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from later.cpp:2:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    g++ -I"/usr/include/R/" -DNDEBUG -pthread -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include" -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c later_native.cpp -o later_native.o
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/mem_fn.hpp:25,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/mem_fn.hpp:22,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/function/detail/prologue.hpp:18,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/function.hpp:30,
    from callback_registry.h:6,
    from later_native.cpp:1:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/get_pointer.hpp:48:40: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    template T * get_pointer(std::auto_ptr const& p)
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from callback_registry.h:4,
    from later_native.cpp:1:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:28,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later_native.cpp:1:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/detail/shared_count.hpp:355:33: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    explicit shared_count( std::auto_ptr & r ): pi
    ( new sp_counted_impl_p( r.get() ) )
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from callback_registry.h:4,
    from later_native.cpp:1:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later_native.cpp:1:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:256:65: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from callback_registry.h:4,
    from later_native.cpp:1:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later_native.cpp:1:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:471:31: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    explicit shared_ptr( std::auto_ptr & r ): px(r.get()), pn()
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from callback_registry.h:4,
    from later_native.cpp:1:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later_native.cpp:1:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:484:22: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    shared_ptr( std::auto_ptr && r ): px(r.get()), pn()
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from callback_registry.h:4,
    from later_native.cpp:1:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later_native.cpp:1:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:567:34: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    shared_ptr & operator=( std::auto_ptr & r )
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from callback_registry.h:4,
    from later_native.cpp:1:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later_native.cpp:1:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:576:34: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    shared_ptr & operator=( std::auto_ptr && r )
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from callback_registry.h:4,
    from later_native.cpp:1:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later_native.cpp:1:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp: In member function ‘boost::shared_ptr& boost::shared_ptr::operator=(std::auto_ptr<Up>&&)’:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:578:38: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    this_type( static_cast< std::auto_ptr && >( r ) ).swap( *this );
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from callback_registry.h:4,
    from later_native.cpp:1:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    g++ -I"/usr/include/R/" -DNDEBUG -pthread -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include" -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c later_posix.cpp -o later_posix.o
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/mem_fn.hpp:25,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/mem_fn.hpp:22,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/function/detail/prologue.hpp:18,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/function.hpp:30,
    from callback_registry.h:6,
    from later_posix.cpp:10:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/get_pointer.hpp:48:40: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    template T * get_pointer(std::auto_ptr const& p)
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from later_posix.cpp:3:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:28,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later_posix.cpp:10:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/detail/shared_count.hpp:355:33: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    explicit shared_count( std::auto_ptr & r ): pi
    ( new sp_counted_impl_p( r.get() ) )
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from later_posix.cpp:3:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later_posix.cpp:10:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:256:65: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from later_posix.cpp:3:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later_posix.cpp:10:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:471:31: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    explicit shared_ptr( std::auto_ptr & r ): px(r.get()), pn()
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from later_posix.cpp:3:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later_posix.cpp:10:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:484:22: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    shared_ptr( std::auto_ptr && r ): px(r.get()), pn()
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from later_posix.cpp:3:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later_posix.cpp:10:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:567:34: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    shared_ptr & operator=( std::auto_ptr & r )
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from later_posix.cpp:3:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later_posix.cpp:10:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:576:34: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    shared_ptr & operator=( std::auto_ptr && r )
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from later_posix.cpp:3:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
    from callback_registry.h:7,
    from later_posix.cpp:10:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp: In member function ‘boost::shared_ptr& boost::shared_ptr::operator=(std::auto_ptr<_Up>&&)’:
    /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:578:38: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    this_type( static_cast< std::auto_ptr && >( r ) ).swap( this );
    ^~~~~~~~
    In file included from /usr/include/c++/8.2.0/bits/locale_conv.h:41,
    from /usr/include/c++/8.2.0/locale:43,
    from /usr/include/c++/8.2.0/iomanip:43,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/RcppCommon.h:52,
    from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include/Rcpp.h:27,
    from later_posix.cpp:3:
    /usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    later_posix.cpp: In function ‘void deInitialize()’:
    later_posix.cpp:187:10: warning: ignoring return value of ‘ssize_t write(int, const void
    , size_t)’, declared with attribute warn_unused_result [-Wunused-result]
    write(dummy_pipe_in, "a", 1);

g++ -I"/usr/include/R/" -DNDEBUG -pthread -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include" -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c later_win32.cpp -o later_win32.o
g++ -I"/usr/include/R/" -DNDEBUG -pthread -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include" -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c timer_posix.cpp -o timer_posix.o
In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:28,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timer_posix.h:6,
from timer_posix.cpp:6:
/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/detail/shared_count.hpp:355:33: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_count( std::auto_ptr & r ): pi_( new sp_counted_impl_p( r.get() ) )
^~~~~~~~
In file included from /usr/include/c++/8.2.0/memory:80,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:23,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timer_posix.h:6,
from timer_posix.cpp:6:
/usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timer_posix.h:6,
from timer_posix.cpp:6:
/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:256:65: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
^~~~~~~~
In file included from /usr/include/c++/8.2.0/memory:80,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:23,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timer_posix.h:6,
from timer_posix.cpp:6:
/usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timer_posix.h:6,
from timer_posix.cpp:6:
/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:471:31: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_ptr( std::auto_ptr & r ): px(r.get()), pn()
^~~~~~~~
In file included from /usr/include/c++/8.2.0/memory:80,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:23,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timer_posix.h:6,
from timer_posix.cpp:6:
/usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timer_posix.h:6,
from timer_posix.cpp:6:
/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:484:22: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
shared_ptr( std::auto_ptr && r ): px(r.get()), pn()
^~~~~~~~
In file included from /usr/include/c++/8.2.0/memory:80,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:23,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timer_posix.h:6,
from timer_posix.cpp:6:
/usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timer_posix.h:6,
from timer_posix.cpp:6:
/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:567:34: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr & r )
^~~~~~~~
In file included from /usr/include/c++/8.2.0/memory:80,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:23,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timer_posix.h:6,
from timer_posix.cpp:6:
/usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timer_posix.h:6,
from timer_posix.cpp:6:
/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:576:34: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr && r )
^~~~~~~~
In file included from /usr/include/c++/8.2.0/memory:80,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:23,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timer_posix.h:6,
from timer_posix.cpp:6:
/usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timer_posix.h:6,
from timer_posix.cpp:6:
/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp: In member function ‘boost::shared_ptr& boost::shared_ptr::operator=(std::auto_ptr<Up>&&)’:
/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:578:38: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
this_type( static_cast< std::auto_ptr && >( r ) ).swap( *this );
^~~~~~~~
In file included from /usr/include/c++/8.2.0/memory:80,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:23,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timer_posix.h:6,
from timer_posix.cpp:6:
/usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/bind/mem_fn.hpp:25,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/mem_fn.hpp:22,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/function/detail/prologue.hpp:18,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/function.hpp:30,
from timer_posix.h:7,
from timer_posix.cpp:6:
/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/get_pointer.hpp: At global scope:
/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/get_pointer.hpp:48:40: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
template T * get_pointer(std::auto_ptr const& p)
^~~~~~~~
In file included from /usr/include/c++/8.2.0/memory:80,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:23,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timer_posix.h:6,
from timer_posix.cpp:6:
/usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
g++ -I"/usr/include/R/" -DNDEBUG -pthread -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include" -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c timestamp_unix.cpp -o timestamp_unix.o
In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:28,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timestamp_unix.cpp:4:
/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/detail/shared_count.hpp:355:33: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_count( std::auto_ptr & r ): pi
( new sp_counted_impl_p( r.get() ) )
^~~~~~~~
In file included from /usr/include/c++/8.2.0/memory:80,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:23,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timestamp_unix.cpp:4:
/usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timestamp_unix.cpp:4:
/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:256:65: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
^~~~~~~~
In file included from /usr/include/c++/8.2.0/memory:80,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:23,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timestamp_unix.cpp:4:
/usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timestamp_unix.cpp:4:
/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:471:31: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
explicit shared_ptr( std::auto_ptr & r ): px(r.get()), pn()
^~~~~~~~
In file included from /usr/include/c++/8.2.0/memory:80,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:23,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timestamp_unix.cpp:4:
/usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timestamp_unix.cpp:4:
/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:484:22: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
shared_ptr( std::auto_ptr && r ): px(r.get()), pn()
^~~~~~~~
In file included from /usr/include/c++/8.2.0/memory:80,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:23,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timestamp_unix.cpp:4:
/usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timestamp_unix.cpp:4:
/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:567:34: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr & r )
^~~~~~~~
In file included from /usr/include/c++/8.2.0/memory:80,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:23,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timestamp_unix.cpp:4:
/usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timestamp_unix.cpp:4:
/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:576:34: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
shared_ptr & operator=( std::auto_ptr && r )
^~~~~~~~
In file included from /usr/include/c++/8.2.0/memory:80,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:23,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timestamp_unix.cpp:4:
/usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
In file included from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timestamp_unix.cpp:4:
/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp: In member function ‘boost::shared_ptr& boost::shared_ptr::operator=(std::auto_ptr<_Up>&&)’:
/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:578:38: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
this_type( static_cast< std::auto_ptr && >( r ) ).swap( *this );
^~~~~~~~
In file included from /usr/include/c++/8.2.0/memory:80,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/config/no_tr1/memory.hpp:21,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/smart_ptr/shared_ptr.hpp:23,
from /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include/boost/shared_ptr.hpp:17,
from timestamp.h:4,
from timestamp_unix.cpp:4:
/usr/include/c++/8.2.0/bits/unique_ptr.h:53:28: note: declared here
template class auto_ptr;
^~~~~~~~
g++ -I"/usr/include/R/" -DNDEBUG -pthread -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include" -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c timestamp_win32.cpp -o timestamp_win32.o
gcc -I"/usr/include/R/" -DNDEBUG -pthread -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I"/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/BH/include" -D_FORTIFY_SOURCE=2 -fpic -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -c tinycthread.c -o tinycthread.o
g++ -shared -L/usr/lib64/R/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o later.so RcppExports.o callback_registry.o init.o later.o later_native.o later_posix.o later_win32.o timer_posix.o timestamp_unix.o timestamp_win32.o tinycthread.o -pthread -L/usr/lib64/R/lib -lR
installing to /home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/later/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
sh: line 1: 1214 Aborted (core dumped) '/usr/lib64/R/bin/R' --no-save --slave 2>&1 < '/tmp/RtmprPyUaa/file4917b4aa623'
terminate called after throwing an instance of 'std::runtime_error'
what(): Mutex creation failed
ERROR: loading failed

  • removing ‘/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/later’
    Warning in install.packages :
    installation of package ‘later’ had non-zero exit status
    ERROR: dependency ‘later’ is not available for package ‘promises’
  • removing ‘/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/promises’
    Warning in install.packages :
    installation of package ‘promises’ had non-zero exit status
    ERROR: dependencies ‘promises’, ‘later’ are not available for package ‘httpuv’
  • removing ‘/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/httpuv’
    Warning in install.packages :
    installation of package ‘httpuv’ had non-zero exit status
    ERROR: dependencies ‘httpuv’, ‘later’, ‘promises’ are not available for package ‘shiny’
  • removing ‘/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/shiny’
    Warning in install.packages :
    installation of package ‘shiny’ had non-zero exit status
    ERROR: dependency ‘shiny’ is not available for package ‘crosstalk’
  • removing ‘/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/crosstalk’
    Warning in install.packages :
    installation of package ‘crosstalk’ had non-zero exit status
    ERROR: dependency ‘crosstalk’ is not available for package ‘DT’
  • removing ‘/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/DT’
    Warning in install.packages :
    installation of package ‘DT’ had non-zero exit status
    ERROR: dependencies ‘crosstalk’, ‘promises’ are not available for package ‘plotly’
  • removing ‘/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/plotly’
    Warning in install.packages :
    installation of package ‘plotly’ had non-zero exit status
    ERROR: dependencies ‘DT’, ‘plotly’ are not available for package ‘arulesViz’
  • removing ‘/home/yanboyang713/R/x86_64-pc-linux-gnu-library/3.5/arulesViz’
    Warning in install.packages :
    installation of package ‘arulesViz’ had non-zero exit status

The downloaded source packages are in
‘/tmp/RtmpwLXgnM/downloaded_packages’

Available methods limited to: ‘graph’, ‘paracoord’, ‘scatterplot’

I have installed version 1.3 but cannot use methods other than ‘graph’, ‘paracoord’, and ‘scatterplot’.

plot(fsets, method="matrix")
Error in plot.itemsets(fsets, method = "matrix") :
Unknown method: ‘matrix’
Available methods: ‘graph’, ‘paracoord’, ‘scatterplot’

System info:
R version 3.4.3 (2017-11-30)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.3 LTS

Wrong y-axis labels in paracoord plot

The following code generates a plot with wrong y-axis labels:

data <- as.data.frame(matrix(c(1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1), nrow = 5, ncol = 6, byrow = TRUE))
names(data) <- c("Bread", "Milk", "Diapers", "Beer", "Eggs", "Cola")
data <- data.frame(apply(data, 2, function(x){as.factor(x)}))

rules <- apriori(data, parameter=list(supp=0.001,conf = 0.15, minlen = 2),
                 appearance = list(none = c("Beer=0", "Diapers=0", "Milk=0",
                                            "Bread=0", "Eggs=0", "Cola=0")))
plot(rules[1:30], method="paracoord", control=list(reorder=TRUE)) 

The reason seems to be the argument: control=list(reorder=TRUE)) as it produces different plots with different seeds. Without the argument the y-labels are correct.

Set Color Limit

Is there a way to set a limit to the color grade?

Suppose that I have 1 rule with Lift 4 but all the other around 0.7 - 1.3. I would like to display the color grade in the range 0.7-1.3.

Error while loading package "arulesViz" in Rstudio

install.packages("arulesViz")
package ‘arulesViz’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\temp\Rtmpyueznq\downloaded_packages

library(arulesViz)
Error: package or namespace load failed for ‘arulesViz’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘caTools’

Warning in install.packages :
package ‘caTools’ is not available (for R version 3.5.3)

Already using updated version of RStudio Desktop .

Please solve my query.
Thanks

Use par settings, xlab&ylab

plot.rules should use the current values set by calls to the par function, e.g., bty and cex.

Also being able to specify xlab and ylab (if only to make the first letter upper case, to be consistent with other plots).

Issue when I install arulesViz through install.packages function

I already tried through Rstudio install the package but there I am having this error:

Installing package into ‘/home/victor/R/x86_64-pc-linux-gnu-library/4.3’
(as ‘lib’ is unspecified)
Warning in install.packages :
  dependency ‘ggraph’ is not available
trying URL 'https://mhahsler.r-universe.dev/src/contrib/arulesViz_1.5-2.tar.gz'
Content type 'application/x-gzip' length 2009313 bytes (1.9 MB)
==================================================
downloaded 1.9 MB

ERROR: dependency ‘ggraph’ is not available for package ‘arulesViz’
* removing ‘/home/victor/R/x86_64-pc-linux-gnu-library/4.3/arulesViz’
Warning in install.packages :
  installation of package ‘arulesViz’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/RtmpOvtmNv/downloaded_packages’
> library(arulesViz)
Error in library(arulesViz) : there is no package called ‘arulesViz’`

and in R terminal I am facing the following error:

> install.packages("arulesViz", repos = "https://mhahsler.r-universe.dev")
Installing package into ‘/home/victor/R/x86_64-pc-linux-gnu-library/4.3’
(as ‘lib’ is unspecified)
Warning: dependencies ‘ggraph’, ‘plotly’ are not available
trying URL 'https://mhahsler.r-universe.dev/src/contrib/arulesViz_1.5-2.tar.gz'
Content type 'application/x-gzip' length 2009313 bytes (1.9 MB)
==================================================
downloaded 1.9 MB

ERROR: dependencies ‘ggraph’, ‘plotly’ are not available for package ‘arulesViz’
* removing ‘/home/victor/R/x86_64-pc-linux-gnu-library/4.3/arulesViz’

The downloaded source packages are in
	‘/tmp/RtmpubqfBo/downloaded_packages’
Warning message:
In install.packages("arulesViz", repos = "https://mhahsler.r-universe.dev") :
  installation of package ‘arulesViz’ had non-zero exit status
> library("arulesViz")
Error in library("arulesViz") : there is no package called ‘arulesViz’
> install.packages("arulesViz")
Installing package into ‘/home/victor/R/x86_64-pc-linux-gnu-library/4.3’
(as ‘lib’ is unspecified)
also installing the dependencies ‘curl’, ‘ggforce’, ‘httr’, ‘ggraph’, ‘plotly’

trying URL 'https://cloud.r-project.org/src/contrib/curl_5.0.1.tar.gz'
Content type 'application/x-gzip' length 714177 bytes (697 KB)
==================================================
downloaded 697 KB

trying URL 'https://cloud.r-project.org/src/contrib/ggforce_0.4.1.tar.gz'
Content type 'application/x-gzip' length 866336 bytes (846 KB)
==================================================
downloaded 846 KB

trying URL 'https://cloud.r-project.org/src/contrib/httr_1.4.6.tar.gz'
Content type 'application/x-gzip' length 157621 bytes (153 KB)
==================================================
downloaded 153 KB

trying URL 'https://cloud.r-project.org/src/contrib/ggraph_2.1.0.tar.gz'
Content type 'application/x-gzip' length 3172456 bytes (3.0 MB)
==================================================
downloaded 3.0 MB

trying URL 'https://cloud.r-project.org/src/contrib/plotly_4.10.2.tar.gz'
Content type 'application/x-gzip' length 3902837 bytes (3.7 MB)
==================================================
downloaded 3.7 MB

trying URL 'https://cloud.r-project.org/src/contrib/arulesViz_1.5-2.tar.gz'
Content type 'application/x-gzip' length 1662138 bytes (1.6 MB)
==================================================
downloaded 1.6 MB

* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/usr/include/x86_64-linux-gnu
Using PKG_LIBS=-lcurl
** libs
using C compiler: ‘gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0’
rm -f curl.so callbacks.o curl.o download.o escape.o fetch.o form.o getdate.o handle.o ieproxy.o init.o interrupt.o multi.o nslookup.o options.o reflist.o split.o ssl.o typechecking.o utils.o version.o winidn.o writer.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c callbacks.c -o callbacks.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c curl.c -o curl.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c download.c -o download.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c escape.c -o escape.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c fetch.c -o fetch.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c form.c -o form.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c getdate.c -o getdate.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c handle.c -o handle.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c ieproxy.c -o ieproxy.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c init.c -o init.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c interrupt.c -o interrupt.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c multi.c -o multi.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c nslookup.c -o nslookup.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c options.c -o options.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c reflist.c -o reflist.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c split.c -o split.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c ssl.c -o ssl.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c typechecking.c -o typechecking.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c utils.c -o utils.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c version.c -o version.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c winidn.c -o winidn.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -DSTRICT_R_HEADERS     -fvisibility=hidden -fpic  -g -O2 -ffile-prefix-map=/build/r-base-1upgAf/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c writer.c -o writer.o
gcc -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -o curl.so callbacks.o curl.o download.o escape.o fetch.o form.o getdate.o handle.o ieproxy.o init.o interrupt.o multi.o nslookup.o options.o reflist.o split.o ssl.o typechecking.o utils.o version.o winidn.o writer.o -lcurl -L/usr/lib/R/lib -lR
installing to /home/victor/R/x86_64-pc-linux-gnu-library/4.3/00LOCK-curl/00new/curl/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (curl)
ERROR: failed to lock directory ‘/home/victor/R/x86_64-pc-linux-gnu-library/4.3’ for modifying
Try removing ‘/home/victor/R/x86_64-pc-linux-gnu-library/4.3/00LOCK-ggforce’
* installing *source* package ‘httr’ ...
** package ‘httr’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (httr)
ERROR: dependency ‘ggforce’ is not available for package ‘ggraph’
* removing ‘/home/victor/R/x86_64-pc-linux-gnu-library/4.3/ggraph’
* installing *source* package ‘plotly’ ...
** package ‘plotly’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (plotly)
ERROR: dependency ‘ggraph’ is not available for package ‘arulesViz’
* removing ‘/home/victor/R/x86_64-pc-linux-gnu-library/4.3/arulesViz’

The downloaded source packages are in
	‘/tmp/RtmpubqfBo/downloaded_packages’
Warning messages:
1: In install.packages("arulesViz") :
  installation of package ‘ggforce’ had non-zero exit status
2: In install.packages("arulesViz") :
  installation of package ‘ggraph’ had non-zero exit status
3: In install.packages("arulesViz") :
  installation of package ‘arulesViz’ had non-zero exit status

And when I execute:

> library("arulesViz")

It returns me the following error:
Error in library("arulesViz") : there is no package called ‘arulesViz’

This is the first package which I am facing issue, I already tried to install ggforce and ggraph and I am facing the same thing with them, I already tried to install it through:
remotes::install_github("mhahsler/arulesViz", dependencies=TRUE)
install.packages('arulesViz', repos = c('https://mhahsler.r-universe.dev', 'https://cloud.r-project.org'))

And unfortunately, they lead me to the same issue again and again I am very stuck

graph_arules: quality attributes returned in igraph object are shifted by one row

Noticed when trying to export rules graph to graphml file,
here is some sample code from a script with explanations:

# - Load necessary libraries and other source files
library(arulesViz)

main = function(){
  print("script_main::main")

  # - load data
  data(Income)

  # - implement association rule analysis from loaded data "Income"
  data_ap = apriori(Income, parameter=list(support=0.5, minlen=2))
  inspect(data_ap)

  # - plot network graph with plot() function of arulesViz package
  # - and save as igraph class object
  graph_by_igraph = plot(data_ap, method="graph", control=list(type="items", cex=0.6, alpha=1), margin=-0.1)

  # - !!!!!!!! Here you can see the error :
  # - when compared to the columns in the table of inspected rules,
  # - all the values are shifted up exactly by one node, resulting in
  # - the item node 48 "language in home=english" having rule quality attributes
  # - and the last rule node r15 not having any quality attributes
  print(vertex_attr(graph_by_igraph ))

  print("exiting main")
  }

main()

Is this still supported?

library("devtools")
install_github("mhahsler/arulesViz")
str(allPackage <- installed.packages(.Library, priority = "high"))
allPackage [, c(1,3:5)]
Loading required package: usethis
Downloading GitHub repo mhahsler/arulesViz@master
igraph      (NA    -> 1.2.4.2 ) [CRAN]
htmltools   (0.3.6 -> 0.4.0   ) [CRAN]
htmlwidgets (1.3   -> 1.5.1   ) [CRAN]
shiny       (1.3.2 -> 1.4.0   ) [CRAN]
fastmap     (NA    -> 1.0.1   ) [CRAN]
BH          (NA    -> 1.72.0-3) [CRAN]
Installing 6 packages: igraph, htmltools, htmlwidgets, shiny, fastmap, BH
Error: Failed to install 'arulesViz' from GitHub:
  (converted from warning) installation of package ‘igraph’ had non-zero exit status
Traceback:

1. install_github("mhahsler/arulesViz")
2. install_remotes(remotes, auth_token = auth_token, host = host, 
 .     dependencies = dependencies, upgrade = upgrade, force = force, 
 .     quiet = quiet, build = build, build_opts = build_opts, build_manual = build_manual, 
 .     build_vignettes = build_vignettes, repos = repos, type = type, 
 .     ...)
3. tryCatch(res[[i]] <- install_remote(remotes[[i]], ...), error = function(e) {
 .     stop(remote_install_error(remotes[[i]], e))
 . })
4. tryCatchList(expr, classes, parentenv, handlers)
5. tryCatchOne(expr, names, parentenv, handlers[[1L]])
6. value[[3L]](cond)

In RStudio:

> library('arulesViz')
Error: package or namespace load failed for ‘arulesViz’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called ‘caTools’

Unable to Load into R

Hello,

install.packages doesn't seem to load in all the required dependencies:
install.packages("arulesViz",dependencies = TRUE)
library(arulesViz)

throws error:
Loading required package: grid
Error: package or namespace load failed for ‘arulesViz’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘iterators’

I think some dependencies are missing, but I'm not too good at this yet:
if I manually install these: (grid, iterators, fpc), library(arulesViz) will no longer throw an error.

Thanks for your work and your time

Labels are missing in method graph with engine htmlWidget

Example:

library(arulesViz)
data(Groceries)
rules <- apriori(Groceries, parameter=list(support = 0.001, confidence = 0.8))
rules

subrules2 <- sample(subset(rules, lift > 5), 25)

# Default engine is ggplot2 with ggnetwork
plot(subrules2, method = "graph", engine = "htmlwidget")

Unused argument error with graph plot

When I try to plot rules with the graph method, I get the following error:

Warning: Error in hex: unused argument (alpha = 1)
Stack trace (innermost first):
    109: sequential_hcl
    108: grey_hcl
    107: as.list
    106: .get_parameters
    105: graph_arules
    104: plot.rules
    103: plot
    102: renderPlot
     92: <reactive:plotObj>
     81: plotObj
     80: origRenderFunc
     79: output$graphPlot
      4: <Anonymous>
      3: do.call
      2: print.shiny.appobj
      1: <Promise>
Warning in structure(NULL, class = "try-error", condition = cond)
  Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
  Consider 'structure(list(), *)' instead.

Or, in a simpler example

Error in hex(polarLUV(L = l[2] - diff(l) * rval^power[2], C = c[2] - diff(c) *  : 
  unused argument (alpha = 1)

Other plot methods work fine. I use arules package 1.5-0 and arulesViz 1.2-0 in R Version 3.4.1 on an Ubuntu 14.04 machine. Does anyone have a solution?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.