Error installing arulesViz package

Had the same issue on MacOS. The below steps fixed it. It might work on Windows as well.
Try out the following steps:

  1. Go to site-library folder where R is installed (also make sure to change version from 3.6 to whatever you have) - R/3.6/site-library/
  2. In the site-library folder, remove the directory 00LOCK-igraph ( I used rm -r 00LOCK-igraph)
  3. Install package TSP
  4. Install package data.table
  5. Install package arulesViz

Hope this helps!