# NOT RUN {
## Typical example, where we wish to compare the functions from different files,
## but we do not want to compare the functions from the same file.
## There will be one value describing the overall similarity level.
SimilaR_fromDirectory(system.file("testdata","data",package="SimilaR"),
returnType = "data.frame",
fileTypes="file",
aggregation = "sym")
## In this example we want to compare every pair of functions: even those
## defined in the same file. Two (non-symmetric) similarity degrees
## are output.
SimilaR_fromDirectory(system.file("testdata","data2",package="SimilaR"),
returnType = "data.frame",
fileTypes="function",
aggregation = "both")
# }
Run the code above in your browser using DataCamp Workspace