r - Error in readRDS(file.rds) -
summary:
i installed rstan package, facing error:
error in readrds(file.rds) : unknown input format
description:
> traceback() 5: readrds(file.rds) 4: is(obj <- readrds(file.rds), "stanmodel") 3: stan_model(file, model_name = model_name, model_code = model_code, stanc_ret = null, boost_lib = boost_lib, eigen_lib = eigen_lib, save_dso = save_dso, verbose = verbose) 2: stan(file = fname, data = datalist, init = list(inlist), chains = 1, iter = n.it, pars = c("f", "tau"), warmup = n.warm, seed = computerid + 1000) @ functions.r#131 1: runmodel(11, myt, nu, lambda, rho, bdri, pars, computerid, n.it, n.warm, getwd())
environment:
- rstan version: 2.16.2
- r version 3.4.1 (2017-06-30)
- operating system: windows 10
please test whether works:
install.packages('rstan') library(rstan) saverds(mtcars, file = 'test.rds') readrds('test.rds')
works fine me
Comments
Post a Comment