identify_seats: Starts a web server to allow you to identify computer seat...

Description Usage Arguments Details See Also

Description

After calling this function, go to each computer, start the web browser you use for experiments, and browse to <server IP>:<server port> /custom/seats . Then you can enter the computer's seat number.

Usage

1
identify_seats(method = "IP", serve = TRUE)

Arguments

method

one of 'IP', 'cookie' or 'both'. See below.

serve

if TRUE, starts the Rhttpd web server to serve the application. If FALSE the function returns a Rook app which can be served by your preferred method

Details

Seat details are stored in a file betr-SEATS.txt, which is looked for when ready is called. The file can be created manually - this function is just for convenience. The file format is like:

1
2
3
4
seat IP  cookie
1  111.1.1.123 AFDJKLRE
2  111.1.1.124 REAJKJKL
...

Either IP or cookie may be NA. If the (default) IP method is used, seats will be identified by IP address: this requires static IP addresses for your clients. The cookie method sets a cookie named betr-seat on the client browser, which will only work on a per-browser basis. If method is 'both' then both cookie and IP address will be used; if both cookie and IP address match the seat file, betr will use the cookie.

See Also

Other development tools: experiment_data_frame; web_test; write_data


hughjonesd/betr documentation built on May 17, 2019, 9:11 p.m.