Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
H
Harmonize_Scripts
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Uncover
Harmonize_Scripts
Commits
6cea643d
Commit
6cea643d
authored
Apr 21, 2023
by
Pepe Márquez Romero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
script peñalvo
parent
2dd8e999
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
264 additions
and
2 deletions
+264
-2
20230411_Script_Connections.R
20230411_Script_Connections.R
+242
-0
remote_execute_as_admin.R
remote_execute_as_admin.R
+21
-1
script.R
script.R
+1
-1
No files found.
20230411_Script_Connections.R
0 → 100644
View file @
6cea643d
This diff is collapsed.
Click to expand it.
remote_execute_as_admin.R
View file @
6cea643d
# load opal library
library
(
opalr
)
o
<-
opal.login
(
'
opal_admin'
,
'nK5&@WC1A13M'
,
url
=
'https://opal.aulss6.veneto.it
'
)
o
<-
opal.login
(
'
pepe'
,
'7G9b!!2IyJs$'
,
url
=
'https://uncover.itg.be
'
)
dir_name
<-
readline
(
"Introduce the name of the directory please: "
)
setwd
(
dir_name
)
file_name
<-
readline
(
"Introduce the name of the file to check the values: "
)
harmonized_data
<-
""
setwd
(
paste
(
dir_name
,
"/harmonized_data"
,
sep
=
""
))
if
(
grepl
(
".csv"
,
file_name
,
fixed
=
TRUE
)){
harmonized_data
<-
read.csv
(
file_name
)
#harmonized_data <- read.csv(file_name, sep = ";")
}
else
if
(
grepl
(
".xlsx"
,
file_name
,
fixed
=
TRUE
)){
harmonized_data
<-
read.xlsx
(
file_name
)
}
#opal.assign.resource(o , "harmonized_data" , "UZA.20220919_UZA" )
#opal.assign.resource(o , "harmonized_data_2" , "ASPEUR.20220919_ASPEUR" )
#opal.execute(o, "class(harmonized_data)")
#opal.execute(o, "class(harmonized_data_2)")
rval
<-
opal.execute.source
(
o
,
paste
(
dir_name
,
"script.R"
,
sep
=
"/"
))
script.R
View file @
6cea643d
pa
ckageVersion
(
"dsDates
"
)
pa
ste
(
"hola"
,
dim.data.frame
(
harmonized_data_2
)
,
collapse
=
"
"
)
Write
Preview
Markdown
is supported
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