Several initialization functions
swe_set_ephe_path(path)
swe_close()
swe_set_jpl_file(fname)
swe_version()
swe_get_library_path()
Directory for the sefstars.txt, swe_deltat.txt and jpl files
JPL ephemeris name as string (JPL ephemeris file, e.g. de431.eph)
swe_version
returns Swiss Ephemeris software version as string
swe_get_library_path
returns the path in which the executable resides as string
This is the first function that should be called before any other function of the Swiss Ephemeris. Even if you don't want to set an ephemeris path and use the Moshier ephemeris, it is nevertheless recommended to call swe_set_ephe_path(NULL), because this function makes important initializations. If you don't do that, the Swiss Ephemeris may work, but the results may be not 100% consistent.
At the end of your computations this function releases most resources (open files and allocated memory) used by Swiss Ephemeris.
Set name of JPL ephemeris file.
The function provides the version number of the Swiss Ephemeris software.
The function provides the path where the executable resides.
Section 1 in http://www.astro.com/swisseph/swephprg.htm. Remember that array indices start in R at 1, while in C they start at 0!
if (FALSE) swe_set_ephe_path("c:\\sweph\\ephe")
swe_close()
swe_set_jpl_file("de431.eph")
swe_version()
#> [1] "2.10.03"
swe_get_library_path()
#> [1] "/home/runner/work/_temp/Library/swephR/libs/swephR.so"