nlrx (version 0.4.5)

import_nl: Import NetLogo Experiment

Description

Import NetLogo Experiment from export_nl

Usage

import_nl(tarfile, targetdir, new_session = FALSE)

Value

The status value returned by the external command, invisibly.

Arguments

tarfile

Path to tarfile that contains files to run NetLogo experiment

targetdir

Path to folder where the experiments gets extracted

new_session

If TRUE, opens a new RStudio Session with an Rproj

Details

Imports NetLogo experiments that were saved with export_nl. If the folder comes with an .Rproj file (which is recommended because relative paths enhance the reproducability of your analysis), import_nl opens this project and loads the nl object in your R environment.

Examples

Run this code
if (FALSE) {

infile <- "/home/user/test.zip"
targetdirectory <- "/home/user/test"
import_nl(infile, targetdirectory)
}

Run the code above in your browser using DataLab