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
PPS
PPS Data Management
Commits
85f7cff8
Commit
85f7cff8
authored
Mar 02, 2021
by
bob
Browse files
Delete enconding specs when reading file
Do not restrict input to UTF-8 format.
parent
143a967a
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/1_extract_metadata.R
View file @
85f7cff8
...
...
@@ -145,7 +145,7 @@ read_data_sheet <- function(file, sheet) {
# The first line is skipped. Otherwise the special place holder '$'
# separating variable name and unit might get coerced to a '.'
switch
(
file
$
extension
,
"csv"
=
read.csv
(
file
$
path
,
header
=
FALSE
,
fileEncoding
=
"UTF-8-BOM"
),
"csv"
=
read.csv
(
file
$
path
,
header
=
FALSE
),
"xlsx"
=
read.xlsx
(
file
$
path
,
sheet
=
sheet
,
colNames
=
FALSE
)
)
}
...
...
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