Skip to main content

Installation of pixelatorR

An easy way to install the pixelatorR package is to use pak.

install.packages("pak")
pak::pak("PixelgenTechnologies/pixelatorR")
For More Advanced R Users

To improve reproducibility, we recommend that you complete the following steps to set up a conda environment and install the R package in the environment. Our preference is to install the Miniforge distribution of conda and mamba.

Download and save the environment yml file to your computer. Then, you can install it with the following instructions. However, if you are in an ARM chipset ( Apple M series or AWS Graviton), follow the alternative ARM instructions below.

conda create -n mpx-analysis-r -f path/to/your/environment*.yml
conda activate mpx-analysis-r

Once the environment is created and activated, you can install pixelatorR from an R session running inside the environment you just created using the pak package.

Mac with ARM chipsets

The necessary R-packages to follow the tutorials cannot be installed on macOS systems with an ARM chipset natively. Some of the packages don't have any supported ARM image.

Make sure you have installed Rosetta and Xcode Command Line Tools. Otherwise, install them: Rosetta, Xcode Command Line Tools.

## Rosetta
$ pkgutil --pkg-info com.apple.pkg.RosettaUpdateAuto
package-id: com.apple.pkg.RosettaUpdateAuto
version: 1.0.0.0.1.1683279177
volume: /
location: /
install-time: 1684563157

## Xcode Command Line Tools
$ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 12.5.1.0.1.1623191612
volume: /
location: /
install-time: 1703124789
groups: com.apple.FindSystemFiles.pkg-group

You can install the packages on macOS systems with ARM chipsets using a workaround by emulating x84_64 with Rosetta. These commands should make sure that conda uses the appropriate x84_64 channels.

## install the packages from the yaml file
CONDA_SUBDIR=osx-64 conda env create -n mpx-analysis-r -f environment*.yml

## activate the environment
conda activate mpx-analysis-r

## use x86_64 architecture channel(s)
conda config --env --set subdir osx-64

Once the environment is created and activated, you can install pixelatorR from an R session running inside the environment you just created using the pak package.

install.packages("pak")
pak::pak("PixelgenTechnologies/pixelatorR")