## Not run:
# # Perform a one run of the innerLoop using a simulated open cluster with
# # spatial and photometric data
# # Load the data into a data frame
# fileName <- "oc_12_500_1000_1.0_p019_0880_1_25km_120nR_withcolors.dat"
# inputFileName <- system.file("extdata", fileName, package="UPMASK")
# ocData <- read.table(inputFileName, header=TRUE)
# ocData <- data.frame(ocData, id=(1:length(ocData[,1]))) # create an id
#
# # Prepare the data to run the inner loop
# posIdx <- c(1,2)
# photIdx <- c(3,5,7,9,11,19,21,23,25,27)
#
# # Create the look up table
# library(RSQLite)
# stcon <- create_smartTable()
#
# # Run the inner loop
# innerLoopRes <- innerLoop(ocData, ocData[,photIdx], autoThresholdLevel=1, verbosity=2,
# starsPerClust_kmeans=25, positionDataIndexes=posIdx,
# smartTableDB=stcon)
#
# # Clean the environment
# rm(list=c("inputFileName", "ocData", "posIdx", "photIdx", "innerLoopRes",
# "fileName"))
# dbDisconnect(stcon)
# ## End(Not run)
Run the code above in your browser using DataLab