<commit_before>include_directories(${CMAKE_SOURCE_DIR}/src)

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${R_CXX_FLAGS}")

add_library(r_static SHARED RInterface.cpp)
target_link_libraries(r_static shogun ${R_LIBRARIES})
<commit_msg>Add install target to RStatic interface in CMakeLists.txt<commit_after>include_directories(${CMAKE_SOURCE_DIR}/src)

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${R_CXX_FLAGS}")

add_library(r_static SHARED RInterface.cpp)
target_link_libraries(r_static shogun ${R_LIBRARIES})
set_target_properties(r_static PROPERTIES PREFIX "")

install(FILES ${CMAKE_CURRENT_BINARY_DIR}/r_static.so
       DESTINATION ${R_COMPONENT_LIB_PATH}/sg/libs
       COMPONENT r
   	   RENAME sg.so)

install(CODE "FILE(MAKE_DIRECTORY ${R_COMPONENT_LIB_PATH}/sg/Meta)")
install(CODE "FILE(MAKE_DIRECTORY ${R_COMPONENT_LIB_PATH}/sg/R)")
install(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_SOURCE_DIR}/src/.r-install.sh ${R_COMPONENT_LIB_PATH} sg so saveRDS WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})")

{'fraction_non_alphanumeric': 0.114, 'fraction_numerical': 0.0, 'mean_word_length': 8.910891089108912, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7135428', 'n_tokens_mistral': 402, 'n_tokens_neox': 377, 'n_words': 53}