Running examples in ‘MDP2-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: convertBinary2HMP
> ### Title: Convert a HMDP model stored in binary format to a 'hmp' (XML)
> ###   file. The function simply parse the binary files and create 'hmp'
> ###   files using the 'hmpMDPWriter()'.
> ### Aliases: convertBinary2HMP
> 
> ### ** Examples
> 
> ## Set working dir
> wd <- setwd(system.file("models", package = "MDP2"))
> 
> ## Convert the machine example to a hmp file
> prefix1 <- "machine1_"
> getBinInfoStates(prefix1)
# A tibble: 14 × 3
     sId stageStr label      
   <dbl> <chr>    <chr>      
 1     0 0,0      Dummy      
 2     1 1,0      good       
 3     2 1,1      average    
 4     3 2,0      good       
 5     4 2,1      average    
 6     5 2,2      not working
 7     6 3,0      good       
 8     7 3,1      average    
 9     8 3,2      not working
10     9 3,3      replaced   
11    10 4,0      good       
12    11 4,1      average    
13    12 4,2      not working
14    13 4,3      replaced   
> convertBinary2HMP(prefix1, duration = NULL)
Warning in write_xml.xml_document(doc, file) :
  Read-only file syste [1538]
Warning in write_xml.xml_document(doc, file) :
  Read-only file syste [1538]
Error in write_xml.xml_document(doc, file) : Error closing file
Calls: convertBinary2HMP ... <Anonymous> -> <Anonymous> -> write_xml.xml_document
Execution halted
Running examples in ‘MDP2-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: convertBinary2HMP
> ### Title: Convert a HMDP model stored in binary format to a 'hmp' (XML)
> ###   file. The function simply parse the binary files and create 'hmp'
> ###   files using the 'hmpMDPWriter()'.
> ### Aliases: convertBinary2HMP
> 
> ### ** Examples
> 
> ## Set working dir
> wd <- setwd(system.file("models", package = "MDP2"))
> 
> ## Convert the machine example to a hmp file
> prefix1 <- "machine1_"
> getBinInfoStates(prefix1)
# A tibble: 14 × 3
     sId stageStr label      
   <dbl> <chr>    <chr>      
 1     0 0,0      Dummy      
 2     1 1,0      good       
 3     2 1,1      average    
 4     3 2,0      good       
 5     4 2,1      average    
 6     5 2,2      not working
 7     6 3,0      good       
 8     7 3,1      average    
 9     8 3,2      not working
10     9 3,3      replaced   
11    10 4,0      good       
12    11 4,1      average    
13    12 4,2      not working
14    13 4,3      replaced   
> convertBinary2HMP(prefix1, duration = NULL)
Warning in write_xml.xml_document(doc, file) :
  Read-only file syste [1538]
Warning in write_xml.xml_document(doc, file) :
  Read-only file syste [1538]
Error in write_xml.xml_document(doc, file) : Error closing file
Calls: convertBinary2HMP ... <Anonymous> -> <Anonymous> -> write_xml.xml_document
Execution halted
Running examples in ‘MDP2-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: convertBinary2HMP
> ### Title: Convert a HMDP model stored in binary format to a 'hmp' (XML)
> ###   file. The function simply parse the binary files and create 'hmp'
> ###   files using the 'hmpMDPWriter()'.
> ### Aliases: convertBinary2HMP
> 
> ### ** Examples
> 
> ## Set working dir
> wd <- setwd(system.file("models", package = "MDP2"))
> 
> ## Convert the machine example to a hmp file
> prefix1 <- "machine1_"
> getBinInfoStates(prefix1)
# A tibble: 14 × 3
     sId stageStr label      
   <dbl> <chr>    <chr>      
 1     0 0,0      Dummy      
 2     1 1,0      good       
 3     2 1,1      average    
 4     3 2,0      good       
 5     4 2,1      average    
 6     5 2,2      not working
 7     6 3,0      good       
 8     7 3,1      average    
 9     8 3,2      not working
10     9 3,3      replaced   
11    10 4,0      good       
12    11 4,1      average    
13    12 4,2      not working
14    13 4,3      replaced   
> convertBinary2HMP(prefix1, duration = NULL)
Warning in write_xml.xml_document(doc, file) :
  Read-only file syste [1538]
Warning in write_xml.xml_document(doc, file) :
  Read-only file syste [1538]
Error in write_xml.xml_document(doc, file) : Error closing file
Calls: convertBinary2HMP ... <Anonymous> -> <Anonymous> -> write_xml.xml_document
Execution halted
Running examples in ‘MDP2-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: convertBinary2HMP
> ### Title: Convert a HMDP model stored in binary format to a 'hmp' (XML)
> ###   file. The function simply parse the binary files and create 'hmp'
> ###   files using the 'hmpMDPWriter()'.
> ### Aliases: convertBinary2HMP
> 
> ### ** Examples
> 
> ## Set working dir
> wd <- setwd(system.file("models", package = "MDP2"))
> 
> ## Convert the machine example to a hmp file
> prefix1 <- "machine1_"
> getBinInfoStates(prefix1)
# A tibble: 14 × 3
     sId stageStr label      
   <dbl> <chr>    <chr>      
 1     0 0,0      Dummy      
 2     1 1,0      good       
 3     2 1,1      average    
 4     3 2,0      good       
 5     4 2,1      average    
 6     5 2,2      not working
 7     6 3,0      good       
 8     7 3,1      average    
 9     8 3,2      not working
10     9 3,3      replaced   
11    10 4,0      good       
12    11 4,1      average    
13    12 4,2      not working
14    13 4,3      replaced   
> convertBinary2HMP(prefix1, duration = NULL)
Warning in write_xml.xml_document(doc, file) :
  Read-only file syste [1538]
Warning in write_xml.xml_document(doc, file) :
  Read-only file syste [1538]
Error in write_xml.xml_document(doc, file) : Error closing file
Calls: convertBinary2HMP ... <Anonymous> -> <Anonymous> -> write_xml.xml_document
Execution halted
installed size is  6.5Mb
  sub-directories of 1Mb or more:
    doc    1.8Mb
    libs   4.2Mb
installed size is  6.7Mb
  sub-directories of 1Mb or more:
    doc    1.8Mb
    libs   4.4Mb
installed size is  6.5Mb
  sub-directories of 1Mb or more:
    doc    1.8Mb
    libs   4.2Mb
installed size is  6.7Mb
  sub-directories of 1Mb or more:
    doc    1.8Mb
    libs   4.4Mb