I can load the package in other R file, but I can not do it in the file.
How to solve the question?

> local({pkg <- select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
Loading required package: tcltk
Loading required package: car
Error in parse(file, n, text, prompt) : syntax error in "*"
Error: .onAttach failed in 'attachNamespace'
Error: package/namespace load failed for 'Rcmdr'

	[[alternative HTML version deleted]]

