Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco De Lucia
RedModRphree
Commits
f9b05033
Commit
f9b05033
authored
May 16, 2018
by
Marco De Lucia
Browse files
fixed session_path
parent
2b10588a
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/Surr_Train.R
View file @
f9b05033
...
...
@@ -2,7 +2,7 @@
### Marco De Lucia, delucia@gfz-potsdam.de, 2009-2018
### Janis Jatnieks, janisj@gfz-potsdam.de, jatnieks@janis.es
### Time-stamp: "Last modified 2018-05-1
1
1
9
:3
0:00
delucia"
### Time-stamp: "Last modified 2018-05-1
6
1
6
:3
1:53
delucia"
### Licence: LGPL version 2.1
## resolve dependencies automatically
...
...
@@ -34,12 +34,12 @@ start_up <- function(session_path=FALSE, ## to disable set to a non-string
list.of.packages
=
c
(
list.of.packages
,
"doMC"
)
}
## load session data first
if
(
class
(
session_path
)[
1
]
==
"character"
&
file.exists
(
session_path
)
)
{
msg
(
"Loading..."
,
session_path
)
load
(
session_path
,
.GlobalEnv
)
msg
(
" OK"
)
}
##
##
load session data first
##
if (class(session_path)[1]=="character" & file.exists(session_path) ) {
##
msg("Loading...",session_path)
##
load(session_path, .GlobalEnv)
##
msg(" OK")
##
}
## loading the right data is important!
## check install and load neccessary packages
msg
(
"Checking for required packages..."
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment