[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: socketConnection from rayshader in R



https://www.rayshader.com/

The codes
## 
## Attaching package: 'ggplot2'

## The following object is masked from 'package:rayrender':
## 
##     arrow
ggdiamonds = ggplot(diamonds) +
  stat_density_2d(aes(x = x, y = depth, fill = stat(nlevel)), 
                  geom = "polygon", n = 200, bins = 50,contour = TRUE) +
  facet_wrap(clarity~.) +
  scale_fill_viridis_c(option = "A")

par(mfrow = c(1, 2))

plot_gg(ggdiamonds, width = 5, height = 5, raytrace = FALSE, preview = TRUE)
plot_gg(ggdiamonds, width = 5, height = 5, multicore = TRUE, scale = 250, 
        zoom = 0.7, theta = 10, phi = 30, windowsize = c(800, 800))
Sys.sleep(0.2)
render_snapshot(clear = TRUE)


On Wed, Sep 13, 2023 at 11:17 AM lina <lina.lastname@gmail.com> wrote:
Error in socketConnection("localhost", port = port, server = TRUE, blocking = TRUE,  :
  all connections are in use

when I use multicore=TRUE,

I have above problem,

when I tried to open

$ telnet localhost 11017
Trying ::1...
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination        
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:11017
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:11017


Reply to: