I'm looking to make first language pack of my theme (make not translate!) and the codes that I used in my theme is like this:
<?php echo _e('By', 'movies'); ?>
So my code variable for translate is: movies
and when I try to make the first translate .po file, will be make but will not load any item and says:
Source codes are not available.
The source codes that I used are: __ and _e
Source path is like this:
C:\Program Files (x86)\Ampps\www\tester\wp-content\themes\2015
movies\language
Which part of my job has problem?
Sorry guys I found the answer! My mistake was in source path part I suppose to write it like this:
C:\Program Files (x86)\Ampps\www\tester\wp-content\themes\2015 movies\
not until translation files folder.
Related
I want to create a zip file which will contain multiple HTML (created from markdown) files. Here is an example of what I would like to do and the code:
Path of Files
[1] "C:/Users/SXC3GFL/Documents/Supplier_Ops_Parameterized_Reports/MVNDR_60457557.html"
[2] "C:/Users/SXC3GFL/Documents/Supplier_Ops_Parameterized_Reports/MVNDR_60083983.html"
[3] "C:/Users/SXC3GFL/Documents/Supplier_Ops_Parameterized_Reports/MVNDR_60009765.html"
I then convert these three files to a variable. Let's call it attachments, how do I create a zip file where I can place the attachments?
What I tried attachments_markdown is the variable where all the path names of my files are.
zip("Drill_Down.zip", files = attachments_markdown)
However, nothing showed up. See below
You can use the zip function to create zip files. Something like this:
zip("name_of_your_zip_file.zip", files = normalizePath(attachments))
Have a look at the ?zip help page for more details.
Note that Windows uses \ in file paths to indicate folders, but in R you will need to use either / or escape the backslash to \\ - so I added normalizePath() to the answer Mikael's suggestion which will take care of that for you in the attachments.
I try to load PET/CT data (folder available in https://wwsi365-my.sharepoint.com/:f:/g/personal/s9956jm_ms_wwsi_edu_pl/EkoL7bs8rvxLq7-YHminlA0Bhc0PBY5_rG3zwMI2coHUAQ?e=TuekJa) - file can be opened via slicer for example so is not corrupted, but when I try to load it via simpleitk in python code below- I get error
code
dirOfExample
="C:\\Users\\1\\Downloads\\bad45Y\\bad45Y\\DICOM\\21071306"
reader = sitk.ImageSeriesReader()
dicom_names = reader.GetGDCMSeriesFileNames(dirOfExample)
reader.SetFileNames(dicom_names)
error
WARNING: In D:\a\1\sitk-build\ITK\Modules\IO\GDCM\src\itkGDCMSeriesFileNames.cxx, line 113
GDCMSeriesFileNames (00000000679B0CC0): No Series can be found, make sure your restrictions are not too strong
Thanks for help!
It looks like your DICOM files are down within some sub-directories of "21071306". The SimpleITK ImageSeriesReader is only going to look for DICOM image files within the directory that you give it. It does not do a recursive search of the sub-directories.
In my opinion the simplest way to create .Renviron file is to use usethis::edit_r_environ().
Is there any analogous command which can create .Renviron.site file ? I couldn't find that command. Or maybe you can figure out some other simply way to create .Renviron.site file ? Only ones I found were very involved and unclear.
Thanks guys
These files are plain text files. You can create them with any text editor that can create .txt files.
So, if the file doesn't already exist:
Open a plain text editor (such as RStudio or Notepad),
create a new
file (and add the desired content),
save it, e.g., as
<R_HOME>/etc/Renviron.site.
The locations where R is searching for these files are described in help("Startup").
I want to open a .jl file and convert it to a readable file preferably in .xls format.
I do not have any any idea about Julia language.
Is there a file opener for jl files?
I came here with the same question, but since the file I was looking at was clearly JSON data, I did some more searching.
The .jl file extension also refers to JSON lines, sometimes instead a .jsonl extension.
More here: http://jsonlines.org/
You can search for .json to Excel to find a converter, e.g. https://json-csv.com/ (this worked fine on my JSON lines file).
A .jl file is a julia script.
It is source code.
Not data.
You can open it up in any text editor, e.g. notepad on windows.
However, it won't normally contain anything useful to you unless you want to edit that code.
(It might contain some array literals that you want, I guess)
Perhaps you mean to ask "How can I open a .jld file"?
Which is a julia HDF5 file.
In which case please ask another question.
As I see, Julia is a script language therefor the file can be opened in a text editor like Notepad++, Vim, etc. Do not use word processor (like LibreOffice Writer) if you want to modify it, but it's OK if you want to read only.
To get started:
https://docs.julialang.org/en/stable/
I tried to display a folder using R script. I know commands like file.choose() and file.show() but I would like to run an R script to display the folder (a real folder, not the picture nor a screenshot of it). After display the folder, the script is done. I'd like to be able to choose to open any file in the folder but won't import anything into R.
file.show() will display a exactly file but I would like to display a folder. Maybe I can say what I am looking for is folder.show() or dictionary.show()??
file.choose() will import that file to R but I do not want to import anything into R
Any ideas?
Try ( if OS=windows)
shell("explorer C:\\Users\\xxx\\yy", intern=TRUE)