Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Commit

Permalink
Update getOpals.R
Browse files Browse the repository at this point in the history
  • Loading branch information
agaye committed May 3, 2015
1 parent 3553c2c commit 29c5144
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/getOpals.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ getOpals <- function(){
flag <- 0
for(i in 1:length(objs)){
cl1 <- class(eval(parse(text=objs[i])))
if(cl1 == 'list'){
if(cl1[1] == 'list'){
# if an object is not an empty list check if its elements are of type 'opal'
list2check <- eval(parse(text=objs[i]))
if(length(list2check) > 0){
Expand Down Expand Up @@ -48,4 +48,4 @@ getOpals <- function(){
return(list("flag"=flag, "opals"=NULL))
}

}
}

0 comments on commit 29c5144

Please sign in to comment.