Learn R Programming

CellNOptR (version 1.18.0)

writeSIF: Convert a model into a SIF format and save the result in a file.

Description

This function takes as input a model (as created by e.g., read from a SIF data set with readSIF function) and save it into a file.

Usage

writeSIF(model, filename, overwrite = FALSE)

Arguments

model
the model
filename
the filename
overwrite
by default, do not overwrite a file.

Examples

Run this code
tmpdir<-tempdir()
setwd(tmpdir)
cpfile<-dir(system.file("ToyModel",package="CellNOptR"),full=TRUE)
file.copy(from=cpfile,to=getwd(),overwrite=TRUE)
ToyModel<-readSIF(sifFile="ToyPKNMMB.sif")
writeSIF(ToyModel, "ToyPKNMMB_copy.sif")

Run the code above in your browser using DataLab