Skip to content

zamorarr/inkr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inkr

This is an R port of inkle’s ink, a scripting language for writing interactive narrative. The port is not written in native R but instead provides an interface to inkjs due to its ease of use and feature completeness.

Installation

You can install the released version of inkr from github with:

remotes::install_github("zamorarr/inkr")

Example

Playing a JSON version of an Ink story in R:

library(inkr)
storyfile <- system.file("examples", "the-intercept.json", package = "inkr")
play_story(storyfile)

## They are keeping me waiting.
##
## [1] Hut 14
##
## Choice: 1
## ---------------------------------
## Hut 14. The door was locked after I sat down.
## I don't even have a pen to do any work. There's a copy of the morning's intercept in my pocket, but staring at the jumbled letters will only drive me mad.
## I am not a machine, whatever they say about me.
##
## [1] Think
## [2] Plan
## [3] Wait

## Choice: 

About

R interface to Inkle's Ink engine through inkjs

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages