Last active
October 6, 2015 12:30
-
-
Save mages/c45e9be1ef6c735a9cca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(rstan) | |
rtools <- "C:\\Rtools\\bin" | |
gcc <- "C:\\Rtools\\gcc-4.6.3\\bin" | |
path <- strsplit(Sys.getenv("PATH"), ";")[[1]] | |
new_path <- c(rtools, gcc, path) | |
new_path <- new_path[!duplicated(tolower(new_path))] | |
Sys.setenv(PATH = paste(new_path, collapse = ";")) | |
# The above overcomes: | |
# Error in compileCode(f, code, language = language, verbose = verbose) : | |
# Compilation ERROR, function(s)/method(s) not created! Warning message: | |
# running command 'make -f "D:/PROGRA~2/R/R-31~1.0/etc/i386/Makeconf" -f "D:/PROGRA~2/R/R-31~1.0/share/make/winshlib.mk" -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment