RStudio: Rook not working?

I would like to create a simple web server using Rook, however I get strange errors when trying it in R-Studio:

Code

library(Rook)
s <- Rhttpd$new()
s$start()
print(s)

returns a useless error

"Error in listenPort> 0: comparison (6) is only possible for atomic and list types."

When I try to use the same code in a simple R-console, everything works - so I would like to understand why this is happening and how I can fix it.

RStudio is version 0.99.484 and R is R 3.2.2

+4
source share
1 answer

I experienced the same thing.

TL; DR: this select request solves the problem: https://github.com/jeffreyhorner/Rook/pull/31


RStudio -, Rook tools:::httpdPort. , -Rook tools:::httpdPort . , .


, , : devtools @github.

install.packages("devtools")
library(devtools)
install_github("filipstachura/Rook")
+6

Source: https://habr.com/ru/post/1609457/


All Articles