Skip to content

Commit 602fcd8

Browse files
committed
wrong options usage
1 parent 3fe6a89 commit 602fcd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/build.panel.r

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ build.panel <- function(datadir=NULL,fam.vars,ind.vars=NULL,heads.only=FALSE,cur
141141
if ( .Platform$OS.type != 'windows' ) {
142142
# warning("I'm setting your encoding to windows now")
143143
oldopts <- options() # code line i
144-
on.exit(oldopts) # code line i + 1
144+
on.exit(options(oldopts)) # code line i + 1
145145
options( encoding = "windows-1252" ) # # only macintosh and *nix users need this line
146146
}
147147

0 commit comments

Comments
 (0)