Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference specific package name for function calls #4

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions sts_synindex_internal.R
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,11 @@ latest_commit_tree_url <- latest_commit$html_url %>% stringr::str_replace("commi
# Index each file in Synapse
if(nrow(synapse_manifest_to_upload) > 0){
for(file_number in seq_len(nrow(synapse_manifest_to_upload))){
tmp <- synapse_manifest_to_upload[file_number, c("path", "parent", "s3_file_key")]
tmp <-
synapse_manifest_to_upload[file_number, c("path", "parent", "s3_file_key")]

absolute_file_path <- tools::file_path_as_absolute(tmp$path)
absolute_file_path <-
tools::file_path_as_absolute(tmp$path)

temp_syn_obj <-
synapser::synCreateExternalS3FileHandle(
Expand All @@ -125,15 +127,16 @@ if(nrow(synapse_manifest_to_upload) > 0){

new_fileName <- stringr::str_replace_all(temp_syn_obj$fileName, ':', '_colon_')

f <- File(dataFileHandleId = temp_syn_obj$id,
parentId = tmp$parent,
name = new_fileName)

f <- synStore(f,
activityName = "Indexing",
activityDescription = "Indexing internal parquet datasets",
used = PARQUET_FOLDER,
executed = latest_commit_tree_url)
f <-
synapser::File(dataFileHandleId = temp_syn_obj$id,
parentId = tmp$parent,
name = new_fileName)

f <-
synapser::synStore(f,
activityName = "Indexing",
activityDescription = "Indexing internal parquet datasets",
used = PARQUET_FOLDER,
executed = latest_commit_tree_url)
}
}
Loading