a
    ø£Beî  ã                   @   s0   d dl mZ d dlmZ dZG dd„ deƒZdS )é   )Úload_config_schema)Ú	ShellSpeca>  Please ensure that RScript executable is in the PATH; this should happen automatically when using Linux, Mac OS or Conda, but will require manual configuration when using the default R installer on Windows.

For more details please consult documentation:
https://cran.r-project.org/bin/windows/base/rw-FAQ.html#Rcmd-is-not-found-in-my-PATH_0021

If Rscript is already in the PATH, you can check whether the language server package is properly installed with:

  Rscript -e "cat(system.file(package='languageserver'))"

which should return the path to the installed package.
c                   @   sh   e Zd ZdZdZdZedd„ ƒZedd„ ƒZdgZ	e
ed	ge
d
dd�e
de› d�dd�eeƒed�ZdS )ÚRLanguageServerZlanguageserverzr-languageserverZRscriptc                 C   s   dd| j › d�gS )Nz--slaveú-ez::run()©Úpackage©Úself© r
   úe/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/jupyter_lsp/specs/r_languageserver.pyÚargs   s    zRLanguageServer.argsc                 C   s   dd| j › d�gS )Nr   zcat(system.file(package='z'))r   r   r
   r
   r   Úis_installed_args   s    z!RLanguageServer.is_installed_argsÚrztext/x-rsrcz0https://github.com/REditorSupport/languageserverz7https://github.com/REditorSupport/languageserver/issues)ÚhomeZissueszinstall.packages("z")z-conda install -c conda-forge r-languageserver)ZcranZconda)Zdisplay_nameZ
mime_typesÚurlsÚinstallZconfig_schemaZtroubleshootN)Ú__name__Ú
__module__Ú__qualname__r   ÚkeyÚcmdÚpropertyr   r   Ú	languagesÚdictr   ÚTROUBLESHOOTÚspecr
   r
   r
   r   r      s,   

þ
þôr   N)Úconfigr   Úutilsr   r   r   r
   r
   r
   r   Ú<module>   s   