Title: | Digital Pets for R |
---|---|
Description: | Store a persistent digital pet on your computer and interact with it in your R console. |
Authors: | Matt Dray [aut, cre], Adriana De Palma [ctb] |
Maintainer: | Matt Dray <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.0 |
Built: | 2024-11-20 05:50:57 UTC |
Source: | https://github.com/matt-dray/tamRgo |
Clean dirt off your pet, which reduces your pet's 'dirty' status value by 1, down to a minimum of 0.
clean()
clean()
Nothing.
## Not run: clean()
## Not run: clean()
Give food to your pet, which reduces your pet's 'hungry' status value by 1, down to a minimum of 0.
feed()
feed()
Nothing.
## Not run: feed()
## Not run: feed()
Print to the console your pet's current characteristics and status values.
get_stats()
get_stats()
The output will show the following elements:
Pet's user-provided name.
Randomly-selected pet species.
Days since born.
Growth stage.
Is the pet alive?
Happiness on a scale of 0 to 5.
Hunger on a scale of 0 to 5.
Dirtiness on a scale of 0 to 5.
Nothing.
## Not run: get_stats()
## Not run: get_stats()
Lays an egg that contains a new digital pet who will live on your computer.
lay_egg(pet_name)
lay_egg(pet_name)
pet_name |
Character. A name for your new pet. Maximum eight characters. |
A persistent 'blueprint' file of your pet's characteristics will be
saved to your computer. It will be saved as an RDS to the directory
location given by tools::R_user_dir("tamRgo", which = "data")
. You can
only have store one blueprint at a time, so you can only have one pet at
a time on your computer. .
Nothing.
## Not run: lay_egg(pet_name = "KEVIN")
## Not run: lay_egg(pet_name = "KEVIN")
Play a game of chance with your pet, which increases your pet's 'happy' status value by 1, up to a maximum of 5.
play()
play()
Nothing.
## Not run: play()
## Not run: play()
Release your pet into the world. Once released, they're gone forever.
release()
release()
Deletes the persistent 'blueprint' file of your pet's
characteristics that's saved as an RDS in the directory location given
by tools::R_user_dir("tamRgo", which = "data")
.
Nothing.
## Not run: release()
## Not run: release()
Print to the console an image of your digital pet.
see_pet()
see_pet()
The appearance of your pet is dependent on its species and level,
which you can view with get_stats
.
Nothing.
## Not run: see_pet()
## Not run: see_pet()