Skip to content

Commit

Permalink
addin fix #151
Browse files Browse the repository at this point in the history
  • Loading branch information
khufkens committed Nov 20, 2024
1 parent b427215 commit afbf373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/addin.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ python_to_list <- function(python_text) {
# split string on line breaks
line_breaks <- strsplit(python_text, "\\n")[[1]]

leading <- line_breaks[grep("dataset", line_breaks)]
trailing <- line_breaks[grep("target", line_breaks)]
leading <- line_breaks[grep("dataset =", line_breaks)]
trailing <- line_breaks[grep("target =", line_breaks)]

# clean up leading and trailing ends if any
if (nchar(leading) == 0 || length(leading) == 0){
Expand Down

0 comments on commit afbf373

Please sign in to comment.