Thanks for the help, I tried your suggestion and it installed a bunch of dependencies but alas it still gives the same error. Hopefully I got the triple backtick thing right:
``` WARNING: Rtools is required to build R packages but is not currently installed. Please download
``` and install the appropriate version of Rtools before proceeding:
``` https://cran.rstudio.com/bin/windows/Rtools/
``` Installing package into ‘C:/Documents/R/win-library/4.0’ (as ‘lib’ is unspecified)
``` also installing the dependencies ‘sys’, ‘askpass’, ‘stringi’, ‘generics’, ‘tidyselect’, ‘hms’, ‘clipr’, ‘BH’, ‘cpp11’, ‘gridExtra’, ‘xml2’, ‘plyr’, ‘bibtex’, ‘lubridate’, ‘openssl’, ‘highr’, ‘markdown’, ‘stringr’, ‘yaml’, ‘xfun’, ‘shape’, ‘dplyr’, ‘downloader’, ‘htmltools’, ‘htmlwidgets’, ‘influenceR’, ‘purrr’, ‘readr’, ‘tidyr’, ‘viridis’, ‘visNetwork’, ‘mvtnorm’, ‘truncnorm’, ‘RefManageR’, ‘httr’, ‘base64enc’, ‘jsonlite’, ‘mime’, ‘tinytex’, ‘coda’, ‘numDeriv’, ‘knitr’, ‘diagram’, ‘DiagrammeR’, ‘msm’, ‘Rsolnp’, ‘knitcitations’, ‘rmarkdown’, ‘ctmcd’, ‘bookdown’, ‘rticles’
``` > z=new("markovchain",transitionMatrix=y);z
``` Error in getClass(Class, where = topenv(parent.frame())) :
``` “markovchain” is not a defined class