R version 3.4.0 (2017-04-21) -- "You Stupid Darkness" Copyright (C) 2017 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. [Previously saved workspace restored] > # Uitvoer Hidden Markov Models for Regime Detectionusing R-QuantStart 17082017 > setwd("C:/Users/Jan van der Peet/Documents/RWorkingDirectory/") > getwd() [1] "C:/Users/Jan van der Peet/Documents/RWorkingDirectory" > # Import the necessary packages and set > # random seed for replication consistency > install.packages('depmixS4') --- Please select a CRAN mirror for use in this session --- trying URL 'http://cran-mirror.cs.uu.nl/bin/windows/contrib/3.4/depmixS4_1.3-3.zip' Content type 'application/zip' length 733411 bytes (716 KB) downloaded 716 KB package ‘depmixS4’ successfully unpacked and MD5 sums checked The downloaded binary packages are in C:\Users\Jan van der Peet\AppData\Local\Temp\Rtmp23Ram6\downloaded_packages > install.packages('quantmod') trying URL 'http://cran-mirror.cs.uu.nl/bin/windows/contrib/3.4/quantmod_0.4-10.zip' Content type 'application/zip' length 479380 bytes (468 KB) downloaded 468 KB package ‘quantmod’ successfully unpacked and MD5 sums checked The downloaded binary packages are in C:\Users\Jan van der Peet\AppData\Local\Temp\Rtmp23Ram6\downloaded_packages > library('depmixS4') Loading required package: nnet Loading required package: MASS Loading required package: Rsolnp