Azure / Azure-TDSP-Utilities

Utilities and scripts developed as part of Microsoft's Team Data Science Process for productive data science
Creative Commons Attribution 4.0 International
373 stars 275 forks source link

Using Windows: Error in sys.frame(1) : not that many frames on the stack #4

Closed amitkb3 closed 7 years ago

amitkb3 commented 7 years ago

Hi, I ran "Run-IDEAR.R" and get the following error "Error in sys.frame(1) : not that many frames on the stack"

I am running R using RStudio on Windows.

Regards, Amit

session info:

sessionInfo() R version 3.3.1 (2016-06-21) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1

locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C LC_TIME=English_United States.1252

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] rmarkdown_1.0

loaded via a namespace (and not attached): [1] magrittr_1.5 rsconnect_0.4.3 htmltools_0.3.5 tools_3.3.1 Rcpp_0.12.6 stringi_1.1.1 stringr_1.0.0
[8] digest_0.6.10 evaluate_0.9

error: if (!"rmarkdown" %in% installed_packages){

  • install.packages("rmarkdown")
  • } if (!"shiny" %in% installed_packages){
  • install.packages("shiny")
  • }

library(rmarkdown) script.dir <- dirname(sys.frame(1)$ofile) Error in sys.frame(1) : not that many frames on the stack setwd(script.dir) Error in setwd(script.dir) : object 'script.dir' not found

xibingaomsft commented 7 years ago

Hi amitkb3, Thanks for trying IDEAR. If you try to run the script in Run-IDEAR.r line by line, or select all lines in Run-IDEAR.r and click _Run_ in RStudio, you will get the error message "Error in sys.frame(1) : not that many frames on the stack". Please (1) Open Run-IDEAR.r in RStudio, and (2) click _Source_ button in RStudio to run Run-IDEAR.r. It should work. -Xibin