Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanaxen committed Apr 1, 2023
1 parent 1f6149d commit 803dfa9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
5 changes: 5 additions & 0 deletions R.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
call init.bat
set R_LIBS_USER=%~dp0\lib


"%R_INSTALL_PATH%\bin\x64"\Rgui.exe
9 changes: 9 additions & 0 deletions init.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
set drive=d:

set R_INSTALL_PATH=%drive%\Program Files\R\R-4.2.3
set R_LIBS_USER==%drive%\Program Files\R\R-4.2.3\library

set RTOOL_PATH=%drive%\rtools42
set RTOOLS40_HOME=%drive%\rtools42

set RPATH=%R_INSTALL_PATH%\bin\x64
3 changes: 3 additions & 0 deletions install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
call init.bat

"%RPATH%\R" CMD BATCH --slave --vanilla ../script/install.r
10 changes: 8 additions & 2 deletions script/install.r
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
install_libpath='C:/Users/bccat/Desktop/DDS2/DDS2/Temporal Fusion Transformers (TFT)/tft/script'
.libPaths(c(install_libpath,.libPaths()))
org_libpath <- .libPaths()

curdir = getwd()


install_libpath = paste(curdir, "/lib", sep="")

.libPaths( c(install_libpath))

install.packages("bit64", repo="http://cran.r-project.org", lib=install_libpath)
install.packages("R6", repo="http://cran.r-project.org", lib=install_libpath)
Expand Down

0 comments on commit 803dfa9

Please sign in to comment.