In R 3.5 blogdown:::serve_site() cannot render .Rmd file - blogdown

After I updated R to 3.5, I found I couldn't render .Rmd file. I tried to reinstall the relevant packages, but it seemed it didn't solve the problem. More specifically, the error message is:
blogdown:::serve_site()
Rendering content/post/mypost.Rmd
Fatal error: cannot open file 'C:/Users/John': No such file or directory
Error in render_page(f) :
Failed to render 'content/post/mypost.Rmd'
My blogdown.Rproj is under the folder C:\Users\John Smith\Documents\GitHub\blogdown. I am not sure why the path in the error message only shows cannot open file 'C:/Users/John', the remaining part of the path was missing. Note the space in "John Smith"
Your help will be really appreciated!

You ran into the same problem as Is this a bug in R 3.5?, and I just applied a workaround in the devel version of blogdown:
devtools::install_github('rstudio/blogdown')

Related

how to solve module build failed after changing file extension ( *.ts => *.tsx )?

after changing a specific file's extension from .ts to .tsx I get:
Compiled with problems:X
ERROR in ./src/components/SomeComp/someFile.ts
Module build failed (from ./node_modules/source-map-loader/dist/cjs.js):
Error: ENOENT: no such file or directory, open '.../someFile.ts'
ERROR
No files matching 'C:\Users...\src\components\SomeComp\someFile.ts' were found.
it has happened recently and somehow figured out on its own,
then i switched branches and when returned it happened again
I tried what was suggested here, clearing the browser cache How to get Chrome to reload source maps?
also restarted the react dev server couple of times
but still it tries to find the file with the old .ts extension...
searched as much as I could but didn't find a solve...
edit:
after changing the extension back and forth and restarting the dev server it has figured out, but I would still love to know what was happening and what perhaps what should be done to handle this situation correctly in the future

In RStudio using bookdown, I am unable to compile a PDF version of my book. I get an error message "mathspec.sty" file not found

In RStudio (Windows 10) using bookdown, I am unable to compile a PDF version of my book. I get an error message "mathspec.sty" file not found. I installed it on my MikTex folder, but the error persists. How to solve this?
Then, I tried to compile to pdfdocument. Now, I got errors from Latex because bookdown is unable to link to my preamble.tex file. How to make preamble.tex visible?
I changed the latex _engine to pdflatex in the output.yml configuration file. This solved the problem for me, although I would still like to know how to use xelatex (i.e. where to include the mathspec.sty file).

Unable to resolve module `some-name` from `Path/To/Project/script.js`

I tried to require("some-name"); in my script.js. This gave me the following error:
Unable to resolve module some-name from Path/To/Project/script.js: Module does not exist in the module map.
So I removed the require("some-name"); in the script.js. The same error occurred.
So I went to a previous state of the app. The error keeps happening and there is nowhere in the code that I request the "some-name" file nor I have the file in my directory.
Here an image where I search in my code to the old file name:
The screen shot of the error in react-native.
I tried the steps shown in the error message and it did not resolve the problem.
It is possible to add more information if it is unclear.
The problem is the cache.
This problem was fixed by:
renaming the file where the error came from.
restarting the server.
Due to the file renaming the server took the updated project with out the error. This problem was solved with the help of Nikhil Parmar in this chat.
The error was already fixed in the code but the server still used the cached project. A normal cache clear and server restart did not work.

facing this error while building a project in xcode

facing this error while building a project in xcode
warning: unable to merge a subprocess's serialized diagnostics
error: unable to open output file '/Users/s-09/Library/Developer/Xcode/DerivedData/ls-cujvtldtpxrezhdhbujnmfcrntjl/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/armv7/CDVPluginResult.o': 'Error opening output file '/Users/s-09/Library/Developer/Xcode/DerivedData/ls-cujvtldtpxrezhdhbujnmfcrntjl/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/armv7/CDVPluginResult.o': Input/output error'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
Cleaning the /DerivedData made it work
Can I safely delete contents of Xcode Derived data folder?
I have also faced that problem. I have closed, restarted Xcode; deleted the application from device and reinstalled it again, then the problem has gone.
Make sure the library and project files is truly included if it is not include it shows in red color in this type of case some time it is in original folder and not in project so delete it and add it again.

Issue with OpenCart module - CodeManager

I have issues with one OpenCart module called CodeManager. I tried installing it several times but every time I get these warnings:
Warning: include(/home/johnsimo/public_html/vendors/codemanager/languages/Array.php) [function.include]: failed to open stream: No such file or directory in /home/sdcom/public_html/game/vendors/codemanager/common.php on line 93
Warning: include() [function.include]: Failed opening '/home/johnsimo/public_html/vendors/codemanager/languages/Array.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sdcom/public_html/game/vendors/codemanager/common.php on line 93
Anybody has any idea on how to fix this?
Basically its saying your missing some files from the extension try reinstalling if that doesnt work contact the person you got it off and get a working copy
please try again to re install this process. or give them to file permission access. may be problem could be there.