check_walls: Check the walls user's provided world

View source: R/helpers.R

check_wallsR Documentation

Check the walls user's provided world

Description

This is a helper function to check ver_walls and hor_walls. It's called by check_user_world twice.

Usage

check_walls(dataset, name, nx, ny, lang)

Arguments

dataset

Either hor_walls or ver_walls

name

Character string: "hor_walls" or "ver_walls"

nx

ny Size of the world

lang

language code (such as "en" or "es") for printing messages

Value

If a misespecification is found, this function produces a stop and provides a descriptive error message.


mpru/karel documentation built on May 12, 2024, 5:16 p.m.