diff --git a/index.html b/index.html
index cb7316f..e806716 100644
--- a/index.html
+++ b/index.html
@@ -125,29 +125,39 @@
If you are using this package for the first time you will need to have Python installed and you will need to download the necessary modules.
-
You can set up {reticulate} to install modules into a virtual or Conda environment. {reticulate} offers reticulate::install_python()
and reticulate::install_miniconda()
to download and set up Python/Conda if you have not yet done so.
+
You can set up {reticulate} to install modules into a virtual environment. {reticulate} offers reticulate::install_python()
to download and set up Python if you have not yet done so.
+
For example, install a recent version of Python, and create a virtual environment called "r-reticulate"
+
Finding the python
binaries
-
+
rosettaPTF::find_python()
-#> [1] "C:/Users/Andrew/Documents/.virtualenvs/r-reticulate/Scripts/python.exe"
+#> [1] "C:/Users/Andrew/OneDrive/Documents/.virtualenvs/r-reticulate/Scripts/python.exe"
find_python()
provides heuristics for setting up {reticulate} to use Python in commonly installed locations.
The first attempt makes use of Sys.which()
to find installations available in the user path directory.
-
find_python()
also provides an option for using ArcGIS Pro Conda environments–which may be needed for users who cannot install Conda by some other means. To use this option specify the arcpy_path
argument or the rosettaPTF.arcpy_path
option to locate both the ArcGIS Pro Conda environment and Python binaries in C:/Program Files/ArcGIS/Pro/bin/Python, for example:
-
-rosettaPTF::find_python(arcpy_path = "C:/Program Files/ArcGIS/Pro/bin/Python")
+
If automatic configuration via find_python()
fails (returns NULL
) you can manually set a path to the python
executable with the {reticulate} RETICULATE_PYTHON
environment variable: Sys.setenv(RETICULATE_PYTHON = "path/to/python")
or reticulate::use_python("path/to/python")
Install rosetta-soil
Python Module
-
The {rosettaPTF} install_rosetta()
method wraps reticulate::py_install("rosetta-soil")
.
+
The {rosettaPTF} install_rosetta()
method wraps reticulate::py_install("rosetta-soil")
. You may not need to install the rosetta-soil
module if your environment is set up, as {reticulate} will install/upgrade dependencies of packages as specified in the package configuration section of the DESCRIPTION file.
You can use install_rosetta()
to install into custom environments by specifying envname
as needed. After installing a new version of the module you should restart your R session.
rosettaPTF::install_rosetta()
-#> Using virtual environment "C:/Users/Andrew/Documents/.virtualenvs/r-reticulate" ...
-#> + "C:/Users/Andrew/Documents/.virtualenvs/r-reticulate/Scripts/python.exe" -m pip install --upgrade --no-user "rosetta-soil"
+#> Using virtual environment "C:/Users/Andrew/OneDrive/Documents/.virtualenvs/r-reticulate" ...
+#> + "C:/Users/Andrew/OneDrive/Documents/.virtualenvs/r-reticulate/Scripts/python.exe" -m pip install --upgrade --no-user rosetta-soil
#> [1] TRUE
Alternately, to install the module manually with pip
you can run the following command. This assumes a Python 3 binary called python
can be found on your path.
python -m pip install rosetta-soil
@@ -208,7 +218,7 @@

+

@@ -260,11 +271,11 @@
# SpatRaster to data.frame interface (one call on all cells)
system.time(test2 <- run_rosetta(res3))
#> user system elapsed
-#> 41.98 9.25 49.46
+#> 51.77 5.69 56.06
# make a plot of the predicted Ksat (identical to mukey-based results)
plot(test2, "log10_Ksat_mean")
-

+

You will notice the results for Ksat distribution are identical since the same input values were used, but the latter approach took longer to run. The time difference is the difference of estimating ~40 (1 estimate per mapunit key) versus ~30,000 (1 estimate per raster cell) sets of Rosetta parameters.
@@ -431,7 +442,7 @@